QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#664704#6473. Cat and MousemekoszcWA 2019ms51828kbC++141.9kb2024-10-21 21:50:172024-10-21 21:50:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1478ms
memory: 44432kb

input:

100
50000 11576
13519 31672
47035 48424
15051 40308
19661 34367
9452 17569
390 9986
26705 26923
37100 10713
25643 42676
9267 19233
49342 37739
6298 3807
5751 22924
25960 4439
33941 13190
12456 3487
29455 14728
49187 6717
36264 16848
46193 37225
30433 49509
2672 30522
12241 13826
42170 21723
19926 39...

output:

6560
12932
14271
19557
38634
46926
12218
21212
19279
8468
21912
2494
21988
15817
26345
16510
5965
6981
10344
3792
38960
8434
24402
26580
44114
5864
28880
14774
8806
23052
2964
34968
14304
9782
27897
23955
1070
15266
1734
17352
13635
9744
18308
32312
14708
7506
18284
8966
12870
2692
20240
34538
13611...

result:

ok 100 lines

Test #2:

score: 0
Accepted
time: 2019ms
memory: 45672kb

input:

100
50000 10844
9849 10014
30855 14044
41255 5689
741 27472
2188 15317
44247 15667
25250 20860
17386 30004
31283 6520
18517 29963
424 16058
27157 7702
43245 44247
421 2476
15880 25168
27347 29496
20263 27372
20340 36923
33827 16402
11332 23340
38182 3577
9347 9560
10735 27960
31533 1572
40061 49158
...

output:

17006
46632
41698
43692
48660
366
530
121
823
516
278
601
306
971
531
498
560
424
475
798
718
119
81
567
578
74
993
354
354
216
323
572
372
105
386
626
330
224
879
387
736
163
524
485
477
650
943
555
861
1656
586
355
314
324
182
133
236
288
638
830
68
494
254
476
262
578
734
552
710
698
341
286
98
6...

result:

ok 100 lines

Test #3:

score: -100
Wrong Answer
time: 1271ms
memory: 51828kb

input:

100
50000 48420
5321 1
26077 5321
26077 24577
26077 43563
26077 38392
26077 2558
26077 27287
26077 39040
26077 7727
26077 12052
26077 40703
26077 33984
26077 40937
26077 13983
26077 48098
26077 34559
26077 42966
26077 38658
26077 11124
26077 4692
26077 43857
26077 9986
26077 5102
26077 2025
26077 46...

output:

2762
512
1709
1535
556
807
725
704
4288
1169
3339
1002
4538
1772
676
893
3679
752
568
617
878
4505
1688
695
507
795
926
1219
1042
562
6783
715
1070
590
603
2347
1980
9867
1429
1021
618
7785
1337
2416
796
521
2272
2372
1137
795
736
862
1086
610
2124
725
781
5180
4810
1248
736
1389
532
1866
23789
747
...

result:

wrong answer 1st lines differ - expected: '222', found: '2762'