can anybody explain the problem statement?
can more than one path lay on two points?
can one path connect a point itself?
Search found 26 matches
- Thu Jul 10, 2008 9:21 am
- Forum: Volume 114 (11400-11499)
- Topic: 11414 - Dream
- Replies: 8
- Views: 7864
- Mon Jun 30, 2008 7:22 am
- Forum: Volume 113 (11300-11399)
- Topic: 11366 - Circle of Debt
- Replies: 1
- Views: 2483
Re: 11366 - Circle of Debt
If the judge data is the same as the original contest data, I think it is wrong:
The forth case is: 1 5 0
1 0 0 0 0 0
0 1 1 1 2 10
0 0 5 0 0 5
This means that before the exchange Alice has 100, Bob has 100 and Cynthia has 25 crowns. Since Alice has to pay Bob 1 crown, and Bob has to pay Cynthia ...
The forth case is: 1 5 0
1 0 0 0 0 0
0 1 1 1 2 10
0 0 5 0 0 5
This means that before the exchange Alice has 100, Bob has 100 and Cynthia has 25 crowns. Since Alice has to pay Bob 1 crown, and Bob has to pay Cynthia ...
- Mon May 19, 2008 4:14 pm
- Forum: Volume 9 (900-999)
- Topic: 930 - Polynomial Roots
- Replies: 1
- Views: 3434
930 - Polynomial Roots
i think each set of input of first line may contain a float number, not an integer number, i.e. the degree of polynomial may give like 3.0 .
i use scanf("%d") and get TLE, but use scanf("%s", word) and n = atoi(word) get AC.
i use scanf("%d") and get TLE, but use scanf("%s", word) and n = atoi(word) get AC.
- Fri Jan 25, 2008 3:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10187 - From Dusk Till Dawn
- Replies: 50
- Views: 26320
it is an unavailable input = =||
getting wrong answer a lot of times and finally ACCEPTED!!!
i think it is a normal bfs problem but the starting time doesn't have a range, namely the starting time can be very large, more than 24, so after you read the starting time, you need to mod 24 , and then judge wheter it is <=6 or >=18. if ...
i think it is a normal bfs problem but the starting time doesn't have a range, namely the starting time can be very large, more than 24, so after you read the starting time, you need to mod 24 , and then judge wheter it is <=6 or >=18. if ...
- Sun Jan 13, 2008 8:33 am
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 29461
- Sun Dec 30, 2007 8:14 am
- Forum: Volume 112 (11200-11299)
- Topic: 11285 - Exchange Rates
- Replies: 6
- Views: 3831
i still don't know why.rio wrote:Send a code with commenting out below part.You could guess why its getting TLE.Code: Select all
if(t>dp[i]) dp[i]=t; if(dp[j]>dp[i]) dp[i]=dp[j];
does it mean that it costs a lot of time to do float number comparison?
- Fri Dec 28, 2007 4:04 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11285 - Exchange Rates
- Replies: 6
- Views: 3831
- Fri Dec 28, 2007 2:50 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11285 - Exchange Rates
- Replies: 6
- Views: 3831
- Fri Dec 28, 2007 1:46 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11285 - Exchange Rates
- Replies: 6
- Views: 3831
11285 - Exchange Rates
i use O(n^2) solution but seems it does not expected, i got TLE.
it's very strange because the limit of n is 365, so i just want to check do i really have to implement an O(n) solution?
it's very strange because the limit of n is 365, so i just want to check do i really have to implement an O(n) solution?
- Thu Dec 06, 2007 5:59 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11305 - Chess on Planet X
- Replies: 6
- Views: 2424
- Thu Dec 06, 2007 4:37 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11321 - Sort! Sort!! and Sort!!!
- Replies: 50
- Views: 29461
long long int get WA ??
although i have accepted this problem, but i wonder what's the bug in my previous code.
#include <stdio.h>
#include <stdlib.h>
long long int en,em;
int mod(long long int n,long long int m){
if(n>0)
return n%m;
else
return m-(-n)%m;
}
int cmp2(long long int a,long long int b){
if(a<b ...
#include <stdio.h>
#include <stdlib.h>
long long int en,em;
int mod(long long int n,long long int m){
if(n>0)
return n%m;
else
return m-(-n)%m;
}
int cmp2(long long int a,long long int b){
if(a<b ...
- Sun Sep 02, 2007 11:27 am
- Forum: Volume 112 (11200-11299)
- Topic: 11201 - The problem of the crazy linguist
- Replies: 21
- Views: 13848
- Thu Aug 09, 2007 4:37 am
- Forum: Volume 111 (11100-11199)
- Topic: 11110 - Equidivisions
- Replies: 33
- Views: 24176
Re: still get WA
If there is empty line do you automatically
output "wrong" ??
Yeah, it should print "wrong".
Here are some I/O. Hope it helps.
Input:
1
2
1 1
2
1 1 1 2
2
1 1 1 2 2 1
2
2
1 1 1 2 1 2
3
1 1 1 2 1 3
2 1 2 2 2 3
3
1 1 1 2 1 3
2 1 2 2 2 3
3
1 1 1 2 2 1
3 3 3 2 2 3
3
1 1 1 2 1 3 1 1 1 2 1 3
2 1 2 ...
output "wrong" ??
Yeah, it should print "wrong".
Here are some I/O. Hope it helps.
Input:
1
2
1 1
2
1 1 1 2
2
1 1 1 2 2 1
2
2
1 1 1 2 1 2
3
1 1 1 2 1 3
2 1 2 2 2 3
3
1 1 1 2 1 3
2 1 2 2 2 3
3
1 1 1 2 2 1
3 3 3 2 2 3
3
1 1 1 2 1 3 1 1 1 2 1 3
2 1 2 ...
- Mon Aug 06, 2007 12:58 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11110 - Equidivisions
- Replies: 33
- Views: 24176
- Mon Aug 06, 2007 8:41 am
- Forum: Volume 112 (11200-11299)
- Topic: 11256 - Repetitive Multiple
- Replies: 15
- Views: 8490
Try this:shakil wrote:Why WA???? i can not find any problem. Please help.....
Code: Select all
3
117
121
126
Code: Select all
108108
110110
108108