
Search found 5 matches
- Fri Apr 18, 2008 5:31 pm
- Forum: Volume 5 (500-599)
- Topic: 571 - Jugs
- Replies: 24
- Views: 15389
Re: 571 - Jugs
Thanks, got AC! 

- Fri Apr 18, 2008 12:27 am
- Forum: Volume 5 (500-599)
- Topic: 571 - Jugs
- Replies: 24
- Views: 15389
Re: [571] Jugs --Help
I'm getting Runtime Error with the following code:
My idea seems to be ok, i'm doing the bfs from (0, 0) to (0, N).
My idea seems to be ok, i'm doing the bfs from (0, 0) to (0, N).
Code: Select all
Accepted!
- Wed Feb 13, 2008 10:25 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10340 - All in All
- Replies: 129
- Views: 50761
- Wed Jan 30, 2008 6:26 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10370 - Above Average
- Replies: 62
- Views: 29261
No need for the while loop:
One more thing, you're already using 'i' as the count in the first for loop, so you must choose a different variable in the other for's.
Code: Select all
long int n,x[1000],i,m;
long double sum,ave,ans,count;
scanf("%ld",&m);
for(i=1;i<=m;i++)
{
...
- Thu Jan 24, 2008 7:24 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10340 - All in All
- Replies: 129
- Views: 50761
WA
Getting WA in this code. I've already tried the cases posted here and they all worked.
Code: Select all
Got AC