amolsharma99's blog

By amolsharma99, 12 years ago, In English

Hello Coders,

Code of th Day is a 10 day long coding marathon. One problem is released everyday at 21:00 IST and need to be submitted with in 24 hrs. System Testing is done after the 24 hrs. Difficulty level of the problems is increases day by day.

Code of the day will begin tonight. First problem will be released today at 21:00 IST.

COD Portal is now live. Link for the portal is http://www.avishkar2012.in/cod/

You can log in to the portal to view the problems and submit your codes. Login credentials on the portal will be same as on the avishkar site, so you need to register on the avishkar site first to be able to login into the portal.

Rules, event description and marking scheme is available on the avishkar site http://www.avishkar2012.in/ under cyberquest.

Wishing you good scores in the cod.

Happy Coding !! :)

For any queries contact — [email protected]

Note : Only Students are eligible for prizes. Professional can participate but are not eligible for prizes.

  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
12 years ago, # |
  Vote: I like it +5 Vote: I do not like it

I have to chose the College in the site's registration. But I'm only 17 :-(.

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Just mention your school name in the box.

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

2 questions :

  • are the answers correct ??
  • when i submit my java file it shows invalid file
  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yes, the answers of the test cases are correct.

    java submission are supported on the judge...you can retry.

    • »
      »
      »
      12 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Yes, now it is fixed .

      Although I have submitted the solution with the answers as in the test cases , I have a strong feeling that the answers should have been these :

      1.1049
      1.3016
      10.0
      
»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Could you please post the languages allowed.

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Its already 9:00 here , 24 hours over .Where is the problem for the day and the results for day1 ??

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anybody tell me why my solution for problem of day 1 is reported as "Compilation Error". Here's my code:

#include <iostream>
#include <algorithm>
#include <math.h>

using namespace std;

#define fi ""
#define fo ""

int main()
{
	freopen(fi, "r", stdin);
	freopen(fo, "w", stdout);
	int t, h, u, a;
	cin >> t;
	double aa = -1000, bb, cc;
	for (; t > 0; --t)
	{
		cin >> h >> u >> a;
		bb = -u*cos((double)a * acos((double)-1) / 180);	
		cc = h;
		double dt = bb*bb - 4*cc*aa;
		dt = (-bb-sqrt(dt))/(2*aa);
		printf("%4.5f\n", dt);
	}
}

Thanks for reading!