QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#380225#8567. Cheap Constructionucup-team646#WA 156ms3872kbC++239.5kb2024-04-06 21:57:152024-04-06 21:57:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
3
1 1
2 2
1 3

output:

1 1
1 3
3 2

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3872kb

input:

2
3
1 1
1 2
3 1
3
1 3
2 1
3 3

output:

1 1
1 1
1 2
1 1
1 3
3 3

result:

ok 6 lines

Test #3:

score: 0
Accepted
time: 156ms
memory: 3608kb

input:

1000
500
1 25
2 115
2 356
4 396
5 417
3 416
1 376
8 302
5 475
8 134
5 470
2 191
9 443
9 483
7 311
6 415
14 422
6 288
9 411
9 318
18 406
20 213
16 292
8 351
8 150
20 199
3 311
22 321
22 221
16 364
7 316
17 79
23 160
23 369
6 209
36 9
35 490
2 498
30 391
31 175
10 322
16 484
4 63
44 304
39 300
13 309
...

output:

1 2
1 2
1 40
1 68
3 65
3 86
5 68
5 301
5 376
5 459
8 498
10 81
10 102
10 258
12 180
13 474
14 482
17 6
17 6
17 6
17 6
17 15
17 15
18 108
18 229
20 197
21 466
23 48
23 57
23 227
23 252
23 393
25 382
27 267
29 58
29 66
30 168
30 191
30 252
31 263
31 432
33 375
35 242
36 275
36 400
39 393
41 368
43 55
...

result:

ok 500000 lines

Test #4:

score: -100
Wrong Answer
time: 156ms
memory: 3608kb

input:

1000
500
1 73
1 297
1 133
3 384
5 303
1 456
7 14
3 220
1 225
6 387
6 248
11 74
8 459
4 344
11 181
16 493
14 58
7 492
5 486
6 225
3 20
1 167
11 375
4 95
22 13
2 455
14 335
18 260
3 46
11 373
19 433
8 61
7 321
14 197
5 47
13 295
6 206
19 428
15 474
28 183
26 482
22 308
33 235
24 247
39 119
5 426
44 15...

output:

1 3
1 3
1 3
1 3
1 26
1 46
1 100
1 156
1 220
1 278
2 345
4 444
7 112
8 140
8 142
8 167
8 202
9 266
9 363
9 368
12 347
15 248
15 344
16 457
18 455
19 457
22 137
22 206
24 170
25 176
25 253
25 461
28 225
28 264
31 100
31 181
31 211
33 268
34 293
36 251
36 257
37 312
39 259
41 217
43 4
43 4
43 88
43 383...

result:

wrong answer 114501st lines differ - expected: '1 1', found: '1 136'