Search found 29 matches
- Mon Jun 29, 2009 10:48 am
- Forum: Volume 102 (10200-10299)
- Topic: 10271 - Chopsticks
- Replies: 20
- Views: 13488
Re: 10271 - Chopsticks
I don't know what's wrong with my code, it gives TLE, can anyone help me plz, here is the code #include <iostream> #include <algorithm> #include <limits.h> using namespace std; int memo[1008][5000],k,n,t,sticks[5000]; int sqr(int x) { return x*x; } int val(int x,int y) { return sqr(x-y); } int dp(in...
- Wed Sep 10, 2008 9:26 am
- Forum: Volume 8 (800-899)
- Topic: 850 - Crypt Kicker II
- Replies: 77
- Views: 47063
Re: 850 - Crypt Kicker II
i've modified my code, tested all the cases here and it passed them all,
it gives me Wrong answer now :S,
here is my code,
it gives me Wrong answer now :S,
here is my code,
Code: Select all
Removed after AC
- Tue Sep 09, 2008 4:33 pm
- Forum: Volume 8 (800-899)
- Topic: 850 - Crypt Kicker II
- Replies: 77
- Views: 47063
Re: 850 - Crypt Kicker II
it gives me RE :S:S:S:S:S
Code: Select all
Removed after AC
- Sat Aug 23, 2008 1:10 am
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 31597
Re: 11371 - Number Theory for Newbies
u r welcome ![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
- Fri Aug 22, 2008 8:42 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 31597
Re: 11371 - Number Theory for Newbies
i don't know actually,
try change the line
while(scanf("%lld" , &val1))
to
while(scanf("%lld" , &val1)!=EOF)
try change the line
while(scanf("%lld" , &val1))
to
while(scanf("%lld" , &val1)!=EOF)
- Fri Aug 01, 2008 6:03 pm
- Forum: Bugs and suggestions
- Topic: Help! problem still in judge queue!!
- Replies: 6
- Views: 3638
Re: Help! problem still in judge queue!!
you have to wait till they fix it ![:cry:](./images/smilies/icon_cry.gif)
![:cry:](./images/smilies/icon_cry.gif)
- Thu Jul 31, 2008 11:26 am
- Forum: Volume 1 (100-199)
- Topic: 118 - Mutant Flatworld Explorers
- Replies: 68
- Views: 17443
Re: 118 WA: wtf
Again :D, All instruction strings will be less than 100 characters in length. less less less less less :D that means that there will be 99 instructions at maximum not 100, so it's enough to make an array of 100 characters, 99 for the instructions and an extra char for the null character, but the 100...
- Wed Jul 30, 2008 9:05 pm
- Forum: Volume 1 (100-199)
- Topic: 118 - Mutant Flatworld Explorers
- Replies: 68
- Views: 17443
Re: 118 WA: wtf
There is a mistake in the problem description
All instruction strings will be less than 100 characters in length.
when i submitted my code with a 100 char array it gave me WA, and when i changed it to 101 with the same logic it was AC
be careful ...
All instruction strings will be less than 100 characters in length.
when i submitted my code with a 100 char array it gave me WA, and when i changed it to 101 with the same logic it was AC
be careful ...
- Mon Jun 23, 2008 11:29 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10037 - Bridge
- Replies: 84
- Views: 34583
Re: 10037 - Bridge
Thanx sooooo much mf for the test case and for ur push also
,
I Got Accepted Finally![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
I Got Accepted Finally
![:)](./images/smilies/icon_smile.gif)
- Mon Jun 23, 2008 10:01 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10037 - Bridge
- Replies: 84
- Views: 34583
- Mon Jun 09, 2008 9:51 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 40174
Re:
I tryed a lot but I didn 't find where is the mistake in my code. Could someone help me? I'm receiving WA. Thank you in advance. try this input 5 10:30 11:30 12:00 13:00 13:30 14:30 15:00 16:00 16:30 17:30 my output: Day #1: the longest nap starts at 10:00 and will last for 30 minutes. your output:...
- Mon Jun 09, 2008 9:39 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 40174
Re: What's the Longest nap?
Can someone please help me. This problem is supposed to be easy, but I'm having a very tough time with it. My output seem right. Can someone point out the error in my code or give my inputs to break it. Thank you! try this input 1 10:01 10:06 my output: Day #1: the longest nap starts at 10:06 and w...
- Mon Jun 09, 2008 9:35 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 40174
Re: 10191
I've tested the inputs in the forum. But still getting wrong answer.Please suggest any sample input that doesn't pass it i tried ur code with some cases and got this 1 10:00 18:00 Day #1: the longest nap starts at -14316557:0-40 and will last for 0 minutes. 1 10:01 10:06 Day #2: the longest nap sta...
- Sun Jun 01, 2008 4:25 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 40174
Re: 10191 - Longest Nap
here is my code, i've got so many wrong answers in this simple problem :S
Code: Select all
Removed after AC :D
- Sat May 31, 2008 8:35 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 106313
Re: Wrong Answer for 102
Thanx Mr.Ron, I Got Accepted ![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)