This is weird!
The input of the problem statement states that N(2 < N < 1000001), M(0 < M < 1001) and K(1< K < 101) . I found that my program outputs "sequence nai" for K == 1. I fixed that so the output become 1 for K == 1. And got accepted.
Is in the judge data there was an input where K == 1?
Search found 56 matches
- Wed Oct 22, 2008 3:33 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11536 - Smallest Sub-Array
- Replies: 9
- Views: 3523
- Tue Oct 21, 2008 6:01 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11536 - Smallest Sub-Array
- Replies: 9
- Views: 3523
Re: 11536 - Smallest Sub-Array
Is there any tricky input I can check?
- Tue Oct 21, 2008 5:28 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11536 - Smallest Sub-Array
- Replies: 9
- Views: 3523
11536 - Smallest Sub-Array
Hi, I'm getting WA in this problem. I can't figure my mistake out. Can anyone check my output to the following input with an AC code's output?
Thanks in advance.
INPUT:
15
20 12 4
20 12 8
3 5 3
1000000 10 12
3 1 2
1000000 1000 100
50 50 50
29 17 11
29 17 33
14 6 3
14365 66 3
353540 233 99
222222 ...
Thanks in advance.
INPUT:
15
20 12 4
20 12 8
3 5 3
1000000 10 12
3 1 2
1000000 1000 100
50 50 50
29 17 11
29 17 33
14 6 3
14365 66 3
353540 233 99
222222 ...
- Mon Nov 26, 2007 7:53 am
- Forum: Volume 113 (11300-11399)
- Topic: 11312 - Flipping Frustration
- Replies: 4
- Views: 2830
I tried the following:
Input:
Output:
Seems correct to me. Are they wrong? Can anyone give me tricky I/O? Please help.
Thanks.
Input:
Code: Select all
9
10 5 4 1
1000 2 1 42
100 2 4 66
101 60 70 51
100 2 3 98
10000000 1 1 10000000
35 3 10 35
35 3 10 34
29 13 5 29
Code: Select all
0
41
uh-oh!
uh-oh!
34
9999999
6
15
uh-oh!
Thanks.
- Wed Nov 21, 2007 7:00 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11307 - Alternative Arborescence
- Replies: 22
- Views: 14588
- Mon Nov 12, 2007 8:07 am
- Forum: Volume 113 (11300-11399)
- Topic: 11303 - Permutations
- Replies: 11
- Views: 4117
- Sun Nov 11, 2007 6:21 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11303 - Permutations
- Replies: 11
- Views: 4117
- Sat Nov 10, 2007 12:07 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11303 - Permutations
- Replies: 11
- Views: 4117
- Sat Oct 27, 2007 6:37 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10800 - Not That Kind of Graph
- Replies: 48
- Views: 29717
- Mon Sep 17, 2007 12:46 am
- Forum: Volume 112 (11200-11299)
- Topic: 11280 - Flying to Fredericton
- Replies: 43
- Views: 23078
11280 - Flying to Fredericton
I tried Floyd-Warshall but getting WA. Can anyone tell me how to solve this problem?
Thanks.
Thanks.
- Sun Sep 09, 2007 2:44 pm
- Forum: Volume 2 (200-299)
- Topic: 264 - Count on Cantor
- Replies: 47
- Views: 22411
- Sat Jan 20, 2007 7:23 am
- Forum: Volume 7 (700-799)
- Topic: 712 - S-Trees
- Replies: 3
- Views: 4534
- Fri Jan 19, 2007 11:15 am
- Forum: Volume 7 (700-799)
- Topic: 712 - S-Trees
- Replies: 3
- Views: 4534
712 - S-Trees
for the following input:
both of the following outputs result PE:
Output 1
Output 2
why? please give suggestions on how to fix it!
Code: Select all
3
x1 x2 x3
00000111
4
000
010
111
110
3
x3 x1 x2
00010011
4
000
010
111
110
0
Output 1
Code: Select all
S-Tree #1:
0011
S-Tree #2:
0011
Code: Select all
S-Tree #1:
0011
S-Tree #2:
0011
- Tue Jan 16, 2007 5:25 pm
- Forum: Volume 8 (800-899)
- Topic: 825 - Walking on the Safe Side
- Replies: 38
- Views: 27508
- Tue Jan 09, 2007 3:10 pm
- Forum: Volume 8 (800-899)
- Topic: 824 - Coast Tracker
- Replies: 8
- Views: 7213