UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119012#1312. 家庭作业Body1001127ms12916kbC++781b2020-09-12 22:17:162020-09-12 22:17:16

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 6784kb

input:

1000
80 39
80 220
80 239
80 438
80 356
80 298
80 366
80 286
80 451
80 113
80 354
80 101
80 143
80 28...

output:

230078

result:

ok single line: '230078'

Test #2:

score: 10
Accepted
time: 272ms
memory: 12916kb

input:

1000000
39 220
239 438
856 298
366 286
451 113
854 101
143 282
538 422
946 286
998 181
977 392
656 4...

output:

500000

result:

ok single line: '500000'

Test #3:

score: 10
Accepted
time: 3ms
memory: 6784kb

input:

1000
39 220
239 438
856 298
366 286
451 113
854 101
143 282
538 422
946 286
998 181
977 392
656 407
...

output:

247833

result:

ok single line: '247833'

Test #4:

score: 10
Accepted
time: 1ms
memory: 6856kb

input:

10000
80 39
80 220
80 239
80 438
80 356
80 298
80 366
80 286
80 451
80 113
80 354
80 101
80 143
80 2...

output:

2383722

result:

ok single line: '2383722'

Test #5:

score: 10
Accepted
time: 0ms
memory: 6860kb

input:

10000
39 220
39 438
56 298
66 286
51 113
54 101
43 282
38 422
46 286
98 181
77 392
56 407
58 324
82 ...

output:

49783

result:

ok single line: '49783'

Test #6:

score: 10
Accepted
time: 28ms
memory: 7564kb

input:

100000
7 39
7 220
7 239
7 438
7 356
7 298
7 366
7 286
7 451
7 113
14 354
14 101
14 143
14 282
14 38
...

output:

22774347

result:

ok single line: '22774347'

Test #7:

score: 10
Accepted
time: 26ms
memory: 7564kb

input:

100000
39 220
239 438
856 298
366 286
451 113
854 101
143 282
538 422
946 286
998 181
977 392
656 40...

output:

497850

result:

ok single line: '497850'

Test #8:

score: 10
Accepted
time: 287ms
memory: 12916kb

input:

1000000
7 39
7 220
7 239
7 438
7 356
7 298
7 366
7 286
7 451
7 113
14 354
14 101
14 143
14 282
14 38...

output:

227219360

result:

ok single line: '227219360'

Test #9:

score: 10
Accepted
time: 247ms
memory: 12900kb

input:

1000000
39 220
39 438
56 298
66 286
51 113
54 101
43 282
38 422
46 286
98 181
77 392
56 407
58 324
8...

output:

50000

result:

ok single line: '50000'

Test #10:

score: 10
Accepted
time: 263ms
memory: 12900kb

input:

1000000
200 39
200 220
200 239
200 438
200 356
200 298
200 366
200 286
200 451
200 113
200 354
200 1...

output:

9909302

result:

ok single line: '9909302'