Search found 33 matches

by vijay03
Sat Jan 20, 2007 9:06 am
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

I thought unless u returned a zero, the judge assumed your program was not running properly. I didnt know we could even return 1000 if we wanted!
by vijay03
Fri Jan 19, 2007 11:43 am
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

Re: 10363 still wa!

shaqira wrote:thnx mf, for givin me suggestion.now i hav changed my code but its still
givin wa :( .am i missin anythin?plz help
here is my modified code:


return 1;
}
Why are you returning a 1 in your code?
by vijay03
Tue Jan 16, 2007 3:52 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 27878

Wa :(

I`ve taken care of it being a multiple input problem and i`ve printed the blank lines between consecutive cases. My program gives the correct output for all the i/o on this forum. Why WA? #include<stdio.h> int main() { char area [102][102]; char output [102][102]; char used[102][102]; int m,n,i,j,k,...
by vijay03
Sun Jan 14, 2007 12:10 pm
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

Sorry, i forgot to do it this morning. Done now.
by vijay03
Sun Jan 14, 2007 6:52 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 15532

Since the nos are very large here, it is sufficient to take the root and store it in a long double. Just do the following: 1. You need to keep taking input as long as the judge keeps giving them. For that, use while(scanf("%lf %lf",&n,&p)==2) { // the processing of each pair of input } 2. Inside the...
by vijay03
Sun Jan 14, 2007 6:43 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 10882

Two things:

Code: Select all


 printf("set# %d\n",j); 


should be

Code: Select all


 printf("Set #%d\n",j); 

And you forgot this line:

Output a blank line after each set.
by vijay03
Sun Jan 14, 2007 6:38 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 52852

Look at the problem statement - it says
A blank line should separate the output for each line of input
Your program merely prints a blank line before each output set. Change that to

Code: Select all


if(count)
printf("\n");

where count denotes no of output set. First output set will have count=0;
by vijay03
Sun Jan 14, 2007 6:31 am
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

Thanks a lot!

Thanks a lot little joey and mf! Sorry to have bothered u for such a silly error :oops: It never struck me to check the conditions themselves as i was getting correct output for all the input.. I thought i was missing a condition. Thanks a lot! :D
by vijay03
Sat Jan 13, 2007 1:01 pm
Forum: Volume 105 (10500-10599)
Topic: 10530 - Guessing Game
Replies: 57
Views: 27473

Thanks a lot!

Thanks a lot Hank! Your i/o showed my error at once. Fixed it and got accepted! :) Thanks a lot!
by vijay03
Sat Jan 13, 2007 12:46 pm
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

this is how i solved the problem, after 9 WA. :( if ( X && O ) goto no; if ( X && (a==b+1) ) goto yes; if ( X && (a!=b+1) ) goto no; if ( O && (a==b) ) goto yes; if ( O && (a!=b) ) goto no; if ( (a==b) || (a==b+1) ) goto yes; else goto no; // check out yes: cout << "yes"; goto end; no: cout << "no"...
by vijay03
Thu Jan 11, 2007 8:32 pm
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 24090

WA?

My program runs perfectly on my comp and gives correct output for the all the inputs given on this forum. Yet i get WA. Here is my code:

Code: Select all


Cut after ACC

I`ve used the logic suggested by someone here. Am i missing something very obvious?
by vijay03
Sun Jan 07, 2007 11:10 am
Forum: Off topic (General chit-chat)
Topic: What is your record of solved problems during one day?
Replies: 18
Views: 68619

Depends on the problems :). Its quite easy to solve around ten ad -hoc problems in a single day.
by vijay03
Sun Jan 07, 2007 11:06 am
Forum: Volume 105 (10500-10599)
Topic: 10530 - Guessing Game
Replies: 57
Views: 27473

My code gives the correct output to your input also.
by vijay03
Mon Jan 01, 2007 9:23 am
Forum: Volume 101 (10100-10199)
Topic: 10183 - How Many Fibs?
Replies: 66
Views: 23262

Can`t binary be used only for searching an exact term? If we use lower_bound and upper_bound, we`ll have to find the smallest fib greater than lower_bound and the highest fib lower than upper_bound and subtract the indices of those two fibs to get the answer right? So how can we use binary search fo...
by vijay03
Mon Jan 01, 2007 9:13 am
Forum: Other words
Topic: How to get my code?
Replies: 1
Views: 2387

Check your email. For every submission u do, the oj sends a program received email to you. You can get your ac code from there!

Go to advanced search