QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#355889#6727. K-hour ClockZhaoZiLongWA 25ms3664kbC++201.0kb2024-03-17 13:28:182024-03-17 13:28:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3656kb

input:

4
11 18 5
3 49 4
1 9 1
1 3 10

output:

24
48
9
-1

result:

ok 4 cases

Test #2:

score: -100
Wrong Answer
time: 25ms
memory: 3664kb

input:

100000
186826504 580942638 34507146
409013320 825277663 642758065
221040339 32805624 253845963
759538401 529610463 314034771
591738614 223935926 591499221
272890462 257036262 529926724
644722795 540369561 79342760
141738127 915104743 658190166
378771709 735410115 474472687
550207480 676282297 233056...

output:

733261996
-1
253845963
975114093
815674540
529926724
1105749596
-1
639709137
1203184138
786371398
1057591501
673441982
847965981
-1
207156247
643543522
1229562136
797923156
1137714978
488183710
524483169
913981025
1136030329
611749281
-1
1345234741
862956523
1053306920
1219167257
-1
410033099
-1
808...

result:

wrong answer Case #3: k <= z (x = 221040339, y = 32805624, z = 253845963, k = 253845963)