11677 - Alarm Clock

All about problems in Volume 116. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Esha1
New poster
Posts: 1
Joined: Wed Dec 11, 2013 1:21 pm

gettin WA on UVa 11677

Post by Esha1 »

Why am I getting WA on this ? :(
http://pastebin.com/zATViJby

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: gettin WA on UVa 11677

Post by brianfry713 »

Input:

Code: Select all

0 5 0 4
0 0 0 0
Output should be 1439
Check input and AC output for thousands of problems on uDebug!

moudud99
New poster
Posts: 28
Joined: Fri Feb 08, 2013 1:40 pm

Re: gettin WA on UVa 11677

Post by moudud99 »

Can anybody please give some critical input output for this code? I am getting WA.
code link: http://pastebin.com/zAaJmP4J

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: gettin WA on UVa 11677

Post by brianfry713 »

Input:

Code: Select all

5 12 12 27
10 16 17 40
10 26 5 26
7 56 1 25
1 8 7 28
20 54 4 55
9 41 12 14
13 27 4 30
21 31 20 52
15 23 15 1
2 41 17 44
23 33 13 54
20 52 18 24
17 56 11 22
21 14 13 59
1 3 6 5
7 14 22 14
1 26 5 5
9 51 8 11
2 20 5 45
13 14 17 51
19 34 22 52
12 57 1 39
17 17 12 23
7 36 20 26
16 12 6 1
4 2 4 2
16 42 2 13
15 9 20 19
13 47 20 58
12 5 12 33
2 17 22 36
12 25 21 54
2 44 1 31
22 6 14 41
12 50 4 53
18 16 12 28
21 47 7 44
11 49 16 31
1 1 22 14
6 49 6 35
5 32 1 55
9 15 6 4
10 1 18 2
6 40 9 58
3 43 3 4
2 26 12 11
21 27 19 22
9 55 8 37
1 2 20 33
21 34 9 50
1 7 16 15
10 47 4 37
11 1 10 59
8 29 20 46
9 57 8 31
17 34 9 4
23 7 16 5
21 24 21 37
7 58 12 1
7 5 14 4
15 58 22 0
2 47 15 18
23 51 13 15
19 41 5 22
14 6 12 37
7 51 7 13
3 38 18 55
0 46 23 20
8 51 13 33
12 34 15 4
10 23 5 8
15 41 4 26
10 9 15 44
9 57 1 2
19 40 23 43
11 7 7 2
16 19 11 56
6 4 21 30
20 52 16 54
21 15 13 24
19 59 1 4
5 56 0 18
5 48 1 15
20 52 11 56
8 36 4 46
20 38 9 49
21 56 6 53
16 10 4 55
15 59 1 21
16 24 7 49
0 21 4 24
6 56 14 51
11 38 1 18
19 35 21 50
15 52 0 39
1 19 3 28
22 20 10 4
10 50 20 5
7 34 12 48
0 0 0 0
AC output:

Code: Select all

435
444
1140
1049
380
481
153
903
1401
1418
903
861
1292
1046
1005
302
900
219
1340
205
277
198
762
1146
770
829
0
571
310
431
28
1219
569
1367
995
963
1092
597
282
1273
1426
1223
1249
481
198
1401
585
1315
1362
1171
736
908
1070
1438
737
1354
930
1018
13
243
419
362
751
804
581
1351
1402
917
1354
282
150
1125
765
335
905
243
1195
1177
926
1202
969
305
1102
1167
904
1210
791
537
765
562
925
243
475
820
135
527
129
704
555
314
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 116 (11600-11699)”