QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869496#8615. Equal Stringsucup-team5656#AC ✓32ms3840kbC++141.8kb2025-01-25 10:27:142025-01-25 10:27:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

4
21
24
21
21
0

output:

1 4
1 3
1 2
2 1
2 4

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
0

output:

1 3

result:

ok Found equal strings: 1, 3

Test #3:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10
25
28
29
25
23
24
21
24
24
30
23
21
18
26
29
26
19
29
27
24
26
27
29
29
0

output:

1 8
1 10
1 7
1 6
1 2
1 9
1 5
1 4
1 3
2 8
2 1
2 10
2 7
2 6
2 9
2 5
2 4
2 3
3 8
3 1
3 10
3 7
3 6
3 2
3 9

result:

ok Found equal strings: 3, 9

Test #4:

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

input:

100
29
29
24
28
29
34
29
24
30
31
24
23
25
24
23
23
22
17
24
25
28
21
26
26
28
30
21
27
24
23
24
27
27
28
23
28
22
23
22
22
25
28
25
24
27
28
23
29
28
24
25
25
18
19
24
27
19
34
25
24
26
27
30
28
27
26
19
22
19
26
19
23
25
23
30
28
29
24
21
26
30
27
22
33
27
24
31
25
28
23
22
29
24
31
30
26
26
30
25...

output:

1 23
1 34
1 98
1 56
1 74
1 11
1 36
1 31
1 83
1 71
1 13
1 100
1 91
1 87
1 66
1 37
1 90
1 93
1 65
1 64
1 68
1 27
1 24
1 50
2 23
2 34
2 98
2 56
2 74
2 11
2 36
2 31
2 83
2 71
2 13
2 100
2 91
2 87
2 66
2 37
2 90
2 93
2 65
2 64
2 68
2 27
2 24
2 50
3 23
3 34
3 98
3 56
3 74
3 11
3 36
3 31
3 83
3 71
3 13
3 1...

result:

ok Found equal strings: 62, 100

Test #5:

score: 0
Accepted
time: 16ms
memory: 3712kb

input:

500
26
23
28
24
28
25
28
25
24
29
28
23
26
32
25
26
21
24
27
29
34
28
27
28
27
28
23
23
25
28
25
22
27
24
33
16
19
33
26
23
22
25
22
30
23
23
28
31
20
27
24
24
20
25
24
23
30
27
24
25
30
24
23
24
29
24
29
23
24
20
25
24
25
24
25
29
23
24
21
26
31
24
25
22
23
23
26
23
26
19
22
24
27
21
22
29
29
26
25...

output:

1 242
1 489
1 190
1 391
1 81
1 75
1 237
1 203
1 274
1 62
1 163
1 453
1 197
1 275
1 471
1 93
1 34
1 349
1 483
1 10
1 176
1 264
1 366
1 436
2 242
2 489
2 190
2 391
2 81
2 75
2 237
2 203
2 274
2 62
2 163
2 453
2 197
2 275
2 471
2 93
2 34
2 349
2 483
2 10
2 176
2 264
2 366
2 436
3 242
3 489
3 190
3 391
...

result:

ok Found equal strings: 100, 334

Test #6:

score: 0
Accepted
time: 22ms
memory: 3584kb

input:

750
25
20
19
28
22
28
26
20
28
23
25
26
26
26
23
23
22
29
23
25
26
27
22
27
28
17
24
25
29
19
25
31
25
22
18
19
25
17
32
22
21
24
22
30
21
26
31
28
24
27
20
23
23
23
23
21
21
22
26
29
17
27
22
24
21
24
24
16
17
24
19
28
28
19
24
25
23
25
27
25
33
30
22
21
25
31
26
26
25
24
26
28
31
22
27
30
20
25
22...

output:

1 143
1 188
1 701
1 578
1 229
1 106
1 597
1 69
1 611
1 717
1 37
1 105
1 409
1 274
1 674
1 398
1 304
1 658
1 703
1 127
1 293
1 699
1 256
1 577
2 143
2 188
2 701
2 578
2 229
2 106
2 597
2 69
2 611
2 717
2 37
2 105
2 409
2 274
2 674
2 398
2 304
2 658
2 703
2 127
2 293
2 699
2 256
2 577
3 143
3 188
3 70...

result:

ok Found equal strings: 130, 698

Test #7:

score: 0
Accepted
time: 14ms
memory: 3712kb

input:

999
27
30
22
26
26
26
31
27
28
28
20
26
25
25
24
26
21
22
18
25
27
25
20
24
24
27
31
21
23
19
24
26
23
23
29
21
26
22
17
29
26
27
19
22
26
20
25
25
33
28
32
22
24
18
25
25
24
24
24
26
25
23
22
30
27
28
18
17
19
25
22
24
29
26
24
22
24
22
29
25
22
28
24
24
27
23
20
22
19
28
20
27
27
23
16
28
23
26
22...

output:

1 258
1 999
1 360
1 933
1 832
1 805
1 461
1 174
1 161
1 282
1 686
1 826
1 131
1 543
1 708
1 853
1 232
1 514
1 137
1 225
1 823
1 870
1 919
1 141
2 258
2 999
2 360
2 933
2 832
2 805
2 461
2 174
2 161
2 282
2 686
2 826
2 131
2 543
2 708
2 853
2 232
2 514
2 137
2 225
2 823
2 870
2 919
2 141
3 258
3 999
...

result:

ok Found equal strings: 205, 281

Test #8:

score: 0
Accepted
time: 12ms
memory: 3840kb

input:

1000
26
29
25
25
22
24
21
29
22
30
20
32
26
25
23
26
21
23
29
27
24
30
23
24
19
28
26
22
31
27
22
28
25
23
25
29
25
22
28
25
26
20
26
30
21
29
26
33
28
27
29
25
24
24
25
25
24
34
28
22
28
29
17
22
21
25
27
23
26
26
25
26
22
35
25
27
26
24
25
31
16
24
26
26
24
23
21
26
21
25
27
21
24
22
27
22
24
19
1...

output:

1 981
1 20
1 646
1 321
1 247
1 427
1 772
1 578
1 901
1 229
1 836
1 950
1 477
1 140
1 25
1 906
1 569
1 506
1 367
1 248
1 596
1 121
1 537
1 987
2 981
2 20
2 646
2 321
2 247
2 427
2 772
2 578
2 901
2 229
2 836
2 950
2 477
2 140
2 25
2 906
2 569
2 506
2 367
2 248
2 596
2 121
2 537
2 987
3 981
3 20
3 646...

result:

ok Found equal strings: 211, 327

Test #9:

score: 0
Accepted
time: 14ms
memory: 3840kb

input:

1000
27
24
25
25
17
23
27
26
28
25
22
23
27
25
21
22
25
31
22
32
17
25
25
24
33
20
25
27
23
15
23
20
30
19
32
25
25
25
21
18
31
27
24
24
25
21
29
24
22
25
28
24
20
24
24
25
25
30
23
30
28
20
24
31
18
22
23
21
30
26
26
27
28
25
26
22
22
24
22
27
25
24
27
20
30
24
22
27
24
30
19
19
26
22
24
31
21
28
2...

output:

1 598
1 472
1 490
1 635
1 495
1 391
1 710
1 189
1 759
1 59
1 161
1 863
1 46
1 651
1 801
1 742
1 577
1 237
1 263
1 581
1 770
1 664
1 639
1 682
2 598
2 472
2 490
2 635
2 495
2 391
2 710
2 189
2 759
2 59
2 161
2 863
2 46
2 651
2 801
2 742
2 577
2 237
2 263
2 581
2 770
2 664
2 639
2 682
3 598
3 472
3 49...

result:

ok Found equal strings: 220, 448

Test #10:

score: 0
Accepted
time: 27ms
memory: 3584kb

input:

1000
27
28
21
24
25
25
21
25
27
26
27
19
28
31
25
27
23
20
27
30
25
28
22
24
26
25
24
19
28
24
28
26
26
23
36
30
29
28
26
24
30
27
22
21
24
25
25
21
30
25
20
29
28
30
22
28
28
27
28
32
21
20
22
30
24
27
32
29
24
25
19
23
27
30
21
28
31
27
27
25
29
20
23
17
32
19
29
25
27
22
27
24
17
30
24
22
21
22
3...

output:

1 827
1 322
1 161
1 875
1 772
1 998
1 215
1 793
1 562
1 585
1 565
1 831
1 382
1 571
1 864
1 637
1 776
1 601
1 78
1 914
1 789
1 93
1 173
1 40
2 827
2 322
2 161
2 875
2 772
2 998
2 215
2 793
2 562
2 585
2 565
2 831
2 382
2 571
2 864
2 637
2 776
2 601
2 78
2 914
2 789
2 93
2 173
2 40
3 827
3 322
3 161
...

result:

ok Found equal strings: 279, 970

Test #11:

score: 0
Accepted
time: 19ms
memory: 3712kb

input:

1000
25
20
30
27
22
30
32
24
24
30
20
24
18
25
25
23
26
25
18
27
22
30
20
31
27
28
22
25
28
26
22
30
24
24
24
24
24
27
25
25
32
21
22
25
20
26
24
29
25
28
28
29
26
26
24
26
28
26
26
28
20
21
23
29
26
25
26
27
30
24
26
23
27
22
22
29
36
34
22
24
22
26
24
26
22
23
23
23
26
27
24
19
26
32
24
31
21
22
2...

output:

1 988
1 165
1 864
1 321
1 757
1 849
1 646
1 940
1 237
1 669
1 887
1 634
1 380
1 240
1 517
1 428
1 103
1 730
1 111
1 296
1 608
1 731
1 245
1 768
2 988
2 165
2 864
2 321
2 757
2 849
2 646
2 940
2 237
2 669
2 887
2 634
2 380
2 240
2 517
2 428
2 103
2 730
2 111
2 296
2 608
2 731
2 245
2 768
3 988
3 165
...

result:

ok Found equal strings: 619, 843

Test #12:

score: 0
Accepted
time: 12ms
memory: 3712kb

input:

1000
34
26
20
22
19
26
25
26
24
23
24
28
22
28
25
25
23
21
16
26
29
22
25
24
21
21
25
15
30
21
18
25
21
22
23
21
25
23
32
28
26
24
23
27
24
29
20
21
27
37
21
21
22
27
24
23
27
26
23
27
27
27
22
22
22
24
25
25
24
25
24
27
23
21
21
29
28
21
28
23
27
20
25
29
25
31
26
24
20
22
25
29
34
29
28
23
21
25
2...

output:

1 154
1 67
1 935
1 113
1 607
1 827
1 720
1 271
1 404
1 681
1 515
1 876
1 811
1 755
1 944
1 485
1 169
1 249
1 618
1 453
1 285
1 690
1 233
1 395
2 154
2 67
2 935
2 113
2 607
2 827
2 720
2 271
2 404
2 681
2 515
2 876
2 811
2 755
2 944
2 485
2 169
2 249
2 618
2 453
2 285
2 690
2 233
2 395
3 154
3 67
3 9...

result:

ok Found equal strings: 678, 717

Test #13:

score: 0
Accepted
time: 17ms
memory: 3584kb

input:

1000
25
25
30
25
24
27
27
23
25
20
18
24
23
24
26
27
22
24
24
30
26
20
23
27
28
24
27
24
27
22
20
32
22
27
27
23
18
21
19
20
27
25
19
25
23
29
24
26
24
20
25
26
27
20
26
28
26
27
25
23
26
23
27
24
27
27
29
23
25
27
28
26
23
23
26
27
22
27
25
27
21
28
20
18
21
18
26
25
22
26
26
28
22
22
23
29
24
22
2...

output:

1 218
1 628
1 383
1 197
1 361
1 911
1 223
1 874
1 469
1 658
1 837
1 965
1 164
1 614
1 257
1 371
1 600
1 241
1 621
1 366
1 258
1 781
1 917
1 872
2 218
2 628
2 383
2 197
2 361
2 911
2 223
2 874
2 469
2 658
2 837
2 965
2 164
2 614
2 257
2 371
2 600
2 241
2 621
2 366
2 258
2 781
2 917
2 872
3 218
3 628
...

result:

ok Found equal strings: 239, 737

Test #14:

score: 0
Accepted
time: 19ms
memory: 3712kb

input:

1000
31
20
26
29
29
22
24
22
28
28
28
25
24
24
29
25
21
21
27
21
27
20
29
31
25
22
22
27
17
18
26
20
28
30
26
21
24
24
29
25
25
21
23
27
25
26
19
31
19
28
26
29
29
34
32
24
22
26
28
27
30
30
21
31
27
29
23
23
19
30
23
25
22
29
17
26
18
27
27
29
31
25
25
24
25
23
22
28
20
20
22
20
32
27
24
26
34
23
2...

output:

1 50
1 628
1 294
1 684
1 633
1 108
1 608
1 133
1 840
1 181
1 168
1 947
1 112
1 474
1 265
1 683
1 524
1 395
1 578
1 302
1 515
1 642
1 894
1 929
2 50
2 628
2 294
2 684
2 633
2 108
2 608
2 133
2 840
2 181
2 168
2 947
2 112
2 474
2 265
2 683
2 524
2 395
2 578
2 302
2 515
2 642
2 894
2 929
3 50
3 628
3 2...

result:

ok Found equal strings: 796, 112

Test #15:

score: 0
Accepted
time: 20ms
memory: 3712kb

input:

1000
23
25
21
22
23
30
28
25
27
23
27
25
31
25
19
21
24
23
24
32
28
30
31
29
23
31
23
24
19
20
20
25
17
27
23
23
25
27
33
27
26
27
28
26
22
28
25
23
28
20
24
27
28
25
21
28
22
26
26
26
30
32
30
28
15
22
25
25
17
21
26
24
25
23
23
24
19
28
30
21
31
27
29
23
27
29
19
27
28
23
16
28
24
26
21
29
24
20
2...

output:

1 891
1 57
1 415
1 527
1 681
1 507
1 421
1 382
1 150
1 736
1 723
1 675
1 563
1 193
1 856
1 416
1 853
1 275
1 251
1 349
1 50
1 40
1 625
1 762
2 891
2 57
2 415
2 527
2 681
2 507
2 421
2 382
2 150
2 736
2 723
2 675
2 563
2 193
2 856
2 416
2 853
2 275
2 251
2 349
2 50
2 40
2 625
2 762
3 891
3 57
3 415
3...

result:

ok Found equal strings: 634, 855

Test #16:

score: 0
Accepted
time: 9ms
memory: 3712kb

input:

1000
20
24
28
25
25
28
20
20
26
22
24
29
24
19
26
26
24
23
29
22
24
27
19
24
21
21
19
24
22
25
27
33
19
31
27
28
23
22
23
25
31
26
28
27
25
26
22
27
23
25
25
26
24
25
23
23
29
39
19
24
25
30
23
23
31
24
30
23
25
26
14
27
26
20
18
27
27
26
24
34
26
24
24
19
26
29
24
26
28
21
25
24
26
25
25
28
24
20
2...

output:

1 49
1 941
1 204
1 34
1 356
1 939
1 726
1 103
1 76
1 608
1 628
1 25
1 90
1 545
1 925
1 492
1 604
1 386
1 522
1 928
1 455
1 956
1 267
1 533
2 49
2 941
2 204
2 34
2 356
2 939
2 726
2 103
2 76
2 608
2 628
2 25
2 90
2 545
2 925
2 492
2 604
2 386
2 522
2 928
2 455
2 956
2 267
2 533
3 49
3 941
3 204
3 34
...

result:

ok Found equal strings: 196, 508

Test #17:

score: 0
Accepted
time: 7ms
memory: 3456kb

input:

1000
27
18
26
22
18
34
26
31
25
24
25
24
29
25
29
31
24
22
31
28
24
25
23
20
25
24
24
28
28
20
26
29
25
26
27
24
27
19
27
29
22
24
19
26
30
21
27
30
28
23
25
25
23
23
21
24
28
27
20
25
22
24
28
30
19
25
20
33
27
22
22
29
19
24
14
24
26
28
26
29
23
28
23
28
19
25
25
31
24
24
25
24
26
17
25
28
30
19
2...

output:

1 200
1 458
1 382
1 861
1 252
1 203
1 760
1 404
1 326
1 298
1 838
1 294
1 550
1 711
1 823
1 572
1 232
1 722
1 473
1 272
1 309
1 90
1 385
1 161
2 200
2 458
2 382
2 861
2 252
2 203
2 760
2 404
2 326
2 298
2 838
2 294
2 550
2 711
2 823
2 572
2 232
2 722
2 473
2 272
2 309
2 90
2 385
2 161
3 200
3 458
3 ...

result:

ok Found equal strings: 30, 255

Test #18:

score: 0
Accepted
time: 23ms
memory: 3712kb

input:

1000
25
27
30
23
25
20
21
25
25
22
21
24
23
29
19
28
27
23
25
21
22
19
18
26
17
29
28
25
31
12
25
23
27
26
21
30
25
21
25
28
23
29
27
23
22
23
26
22
30
22
25
22
24
25
20
30
28
27
24
25
24
22
22
21
26
26
28
24
29
30
23
27
32
30
21
24
28
31
24
32
24
29
30
23
28
24
26
19
26
22
26
20
27
34
23
31
27
23
2...

output:

1 982
1 250
1 9
1 633
1 981
1 144
1 936
1 873
1 211
1 788
1 523
1 616
1 147
1 404
1 708
1 727
1 772
1 489
1 195
1 356
1 290
1 397
1 463
1 528
2 982
2 250
2 9
2 633
2 981
2 144
2 936
2 873
2 211
2 788
2 523
2 616
2 147
2 404
2 708
2 727
2 772
2 489
2 195
2 356
2 290
2 397
2 463
2 528
3 982
3 250
3 9
...

result:

ok Found equal strings: 284, 957

Test #19:

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

input:

1000
26
24
27
25
20
29
28
23
26
24
29
29
23
20
20
24
22
30
19
22
25
26
23
22
30
28
27
23
24
23
22
27
24
18
19
21
33
24
22
26
26
28
23
20
23
32
23
24
21
17
32
22
27
20
25
26
29
29
26
26
30
29
23
17
25
23
28
29
24
29
24
27
24
24
33
27
22
27
28
27
28
30
21
25
21
18
28
18
24
24
29
22
27
24
23
20
23
25
2...

output:

1 844
1 339
1 719
1 599
1 972
1 359
1 108
1 509
1 391
1 436
1 167
1 511
1 502
1 412
1 407
1 280
1 626
1 956
1 491
1 430
1 481
1 435
1 194
1 591
2 844
2 339
2 719
2 599
2 972
2 359
2 108
2 509
2 391
2 436
2 167
2 511
2 502
2 412
2 407
2 280
2 626
2 956
2 491
2 430
2 481
2 435
2 194
2 591
3 844
3 339
...

result:

ok Found equal strings: 343, 478

Test #20:

score: 0
Accepted
time: 12ms
memory: 3712kb

input:

1000
24
23
25
25
20
27
21
26
31
29
26
23
29
27
28
26
20
27
21
25
24
20
20
33
27
30
18
20
21
30
26
27
26
26
31
26
26
26
23
23
27
22
24
22
25
19
25
24
24
17
27
29
30
21
29
28
27
25
26
25
19
27
30
30
24
27
25
27
28
26
24
31
31
28
24
30
21
28
24
29
26
30
29
24
28
22
23
23
27
24
28
28
29
25
23
24
25
24
2...

output:

1 358
1 153
1 384
1 555
1 692
1 416
1 944
1 154
1 563
1 164
1 55
1 141
1 829
1 481
1 809
1 707
1 564
1 261
1 926
1 949
1 873
1 202
1 169
1 14
2 358
2 153
2 384
2 555
2 692
2 416
2 944
2 154
2 563
2 164
2 55
2 141
2 829
2 481
2 809
2 707
2 564
2 261
2 926
2 949
2 873
2 202
2 169
2 14
3 358
3 153
3 38...

result:

ok Found equal strings: 352, 402

Test #21:

score: 0
Accepted
time: 22ms
memory: 3840kb

input:

1000
18
23
23
22
24
22
30
27
27
27
29
30
29
24
31
19
20
30
27
26
21
21
24
26
25
22
28
31
27
23
29
24
24
22
30
25
30
25
24
20
23
25
22
29
28
28
25
23
26
25
29
30
28
26
32
25
23
27
25
22
27
20
19
19
24
20
25
26
25
27
28
22
22
23
27
22
20
28
30
25
25
25
23
30
25
24
21
17
30
30
25
22
27
23
24
22
22
21
2...

output:

1 395
1 983
1 634
1 288
1 857
1 789
1 602
1 473
1 166
1 599
1 800
1 695
1 266
1 749
1 703
1 936
1 69
1 52
1 630
1 676
1 809
1 836
1 610
1 519
2 395
2 983
2 634
2 288
2 857
2 789
2 602
2 473
2 166
2 599
2 800
2 695
2 266
2 749
2 703
2 936
2 69
2 52
2 630
2 676
2 809
2 836
2 610
2 519
3 395
3 983
3 63...

result:

ok Found equal strings: 462, 874

Test #22:

score: 0
Accepted
time: 27ms
memory: 3712kb

input:

1000
22
27
25
22
24
32
23
30
26
28
24
23
33
23
20
23
20
29
24
23
26
30
19
31
27
20
24
27
23
19
24
31
25
27
25
26
22
22
25
22
27
22
29
26
25
19
30
32
26
27
27
24
26
32
27
30
14
24
22
25
29
25
24
31
14
25
22
27
22
28
25
29
24
25
25
28
30
16
31
22
26
30
28
31
25
27
26
27
28
27
24
21
28
26
29
23
19
22
2...

output:

1 110
1 154
1 570
1 424
1 884
1 888
1 59
1 756
1 481
1 685
1 205
1 644
1 378
1 448
1 628
1 268
1 782
1 204
1 505
1 886
1 40
1 137
1 864
1 135
2 110
2 154
2 570
2 424
2 884
2 888
2 59
2 756
2 481
2 685
2 205
2 644
2 378
2 448
2 628
2 268
2 782
2 204
2 505
2 886
2 40
2 137
2 864
2 135
3 110
3 154
3 57...

result:

ok Found equal strings: 521, 747

Test #23:

score: 0
Accepted
time: 25ms
memory: 3840kb

input:

1000
18
20
23
22
29
24
28
25
24
26
24
27
22
28
29
25
28
24
27
25
22
20
26
24
26
28
27
22
23
22
22
25
24
30
28
21
26
22
21
21
22
28
23
23
26
24
20
20
26
24
27
24
21
22
24
27
28
20
22
21
30
24
25
21
22
26
25
27
26
26
28
22
23
21
24
19
18
29
27
24
29
25
27
24
25
25
22
30
29
25
20
26
25
31
25
25
25
21
2...

output:

1 918
1 211
1 516
1 525
1 380
1 987
1 529
1 864
1 440
1 589
1 989
1 234
1 91
1 18
1 84
1 65
1 943
1 63
1 746
1 933
1 113
1 7
1 126
1 982
2 918
2 211
2 516
2 525
2 380
2 987
2 529
2 864
2 440
2 589
2 989
2 234
2 91
2 18
2 84
2 65
2 943
2 63
2 746
2 933
2 113
2 7
2 126
2 982
3 918
3 211
3 516
3 525
3 ...

result:

ok Found equal strings: 621, 861

Test #24:

score: 0
Accepted
time: 25ms
memory: 3712kb

input:

1000
27
28
32
28
26
27
21
25
26
31
27
29
28
22
26
23
28
26
18
27
26
27
26
27
26
27
23
27
19
20
32
28
29
26
26
26
29
21
31
24
23
21
33
26
31
26
27
24
22
19
27
25
17
28
32
26
35
26
24
26
31
21
33
24
27
19
27
36
21
24
27
22
27
20
22
24
28
21
33
23
28
25
25
25
24
26
24
23
22
26
30
27
26
25
32
25
26
25
3...

output:

1 109
1 146
1 262
1 549
1 196
1 163
1 255
1 516
1 739
1 40
1 214
1 342
1 639
1 736
1 816
1 565
1 594
1 836
1 195
1 435
1 245
1 955
1 841
1 284
2 109
2 146
2 262
2 549
2 196
2 163
2 255
2 516
2 739
2 40
2 214
2 342
2 639
2 736
2 816
2 565
2 594
2 836
2 195
2 435
2 245
2 955
2 841
2 284
3 109
3 146
3 ...

result:

ok Found equal strings: 143, 920

Test #25:

score: 0
Accepted
time: 32ms
memory: 3712kb

input:

1000
28
30
28
22
27
25
17
25
17
27
25
23
25
23
22
26
22
26
26
19
18
22
23
25
36
26
26
30
29
31
25
19
25
23
23
25
25
25
34
24
20
24
24
23
22
20
23
27
24
20
18
22
25
31
19
21
21
25
29
29
27
25
30
28
22
30
26
21
20
26
27
21
27
19
25
29
26
26
28
24
22
24
20
26
32
16
21
25
23
25
19
24
27
27
24
26
21
21
2...

output:

1 627
1 776
1 336
1 320
1 918
1 476
1 131
1 808
1 542
1 628
1 978
1 74
1 915
1 305
1 523
1 89
1 929
1 381
1 85
1 693
1 713
1 605
1 173
1 166
2 627
2 776
2 336
2 320
2 918
2 476
2 131
2 808
2 542
2 628
2 978
2 74
2 915
2 305
2 523
2 89
2 929
2 381
2 85
2 693
2 713
2 605
2 173
2 166
3 627
3 776
3 336
...

result:

ok Found equal strings: 17, 979

Test #26:

score: 0
Accepted
time: 18ms
memory: 3840kb

input:

1000
32
25
20
22
26
29
21
25
28
24
24
31
24
22
24
31
24
26
19
23
26
25
29
24
25
28
25
23
21
24
18
22
23
27
21
30
21
27
25
22
23
33
28
24
31
20
24
19
33
22
25
21
23
30
26
22
29
25
23
32
23
25
23
30
23
21
22
28
29
18
24
23
22
27
24
32
24
19
27
31
24
26
26
25
30
20
28
27
32
30
25
25
24
27
27
28
22
23
2...

output:

1 432
1 603
1 21
1 814
1 731
1 218
1 303
1 444
1 685
1 813
1 113
1 228
1 907
1 470
1 646
1 570
1 823
1 246
1 994
1 808
1 877
1 81
1 879
1 983
2 432
2 603
2 21
2 814
2 731
2 218
2 303
2 444
2 685
2 813
2 113
2 228
2 907
2 470
2 646
2 570
2 823
2 246
2 994
2 808
2 877
2 81
2 879
2 983
3 432
3 603
3 21...

result:

ok Found equal strings: 39, 538

Test #27:

score: 0
Accepted
time: 7ms
memory: 3840kb

input:

1000
24
24
24
25
28
26
19
26
24
23
26
26
23
22
31
28
30
23
22
26
25
25
24
26
28
24
34
23
26
30
29
28
30
27
24
26
21
22
21
24
22
23
26
26
29
19
24
24
35
31
27
22
21
25
24
23
23
28
27
21
32
23
24
27
27
26
31
17
30
22
27
35
29
25
25
28
23
25
28
25
23
24
29
23
24
27
18
23
17
26
25
29
26
32
25
17
21
25
2...

output:

1 919
1 528
1 366
1 413
1 420
1 769
1 198
1 807
1 65
1 732
1 18
1 447
1 845
1 379
1 903
1 19
1 856
1 502
1 630
1 26
1 833
1 754
1 392
1 247
2 919
2 528
2 366
2 413
2 420
2 769
2 198
2 807
2 65
2 732
2 18
2 447
2 845
2 379
2 903
2 19
2 856
2 502
2 630
2 26
2 833
2 754
2 392
2 247
3 919
3 528
3 366
3 ...

result:

ok Found equal strings: 98, 412

Test #28:

score: 0
Accepted
time: 19ms
memory: 3712kb

input:

1000
20
29
24
34
23
29
28
21
23
26
23
25
28
23
26
22
27
25
25
31
20
21
32
27
30
33
30
24
19
29
22
25
23
24
27
25
22
25
28
18
25
23
27
29
28
23
24
21
22
35
22
26
17
27
26
23
23
30
23
31
22
25
26
20
29
23
29
23
26
27
30
25
26
25
22
18
25
23
26
29
23
24
23
25
26
19
20
24
19
23
23
23
24
21
24
29
24
25
2...

output:

1 579
1 176
1 789
1 457
1 72
1 808
1 859
1 792
1 54
1 532
1 398
1 935
1 829
1 470
1 19
1 994
1 307
1 168
1 737
1 819
1 364
1 393
1 122
1 631
2 579
2 176
2 789
2 457
2 72
2 808
2 859
2 792
2 54
2 532
2 398
2 935
2 829
2 470
2 19
2 994
2 307
2 168
2 737
2 819
2 364
2 393
2 122
2 631
3 579
3 176
3 789
...

result:

ok Found equal strings: 598, 970

Test #29:

score: 0
Accepted
time: 23ms
memory: 3840kb

input:

1000
23
23
31
33
26
24
24
22
19
25
21
29
25
25
33
28
27
26
24
30
28
26
23
22
21
25
29
23
26
30
18
20
29
25
23
27
27
33
33
20
29
26
20
28
22
28
21
30
24
26
26
22
27
25
29
21
16
28
24
20
22
24
26
25
20
29
19
27
29
27
26
23
22
24
26
20
25
21
23
23
20
20
26
24
22
28
24
19
22
25
29
25
21
23
24
25
21
33
2...

output:

1 115
1 446
1 187
1 20
1 365
1 294
1 807
1 607
1 644
1 441
1 976
1 304
1 457
1 628
1 660
1 886
1 847
1 471
1 865
1 600
1 594
1 763
1 482
1 814
2 115
2 446
2 187
2 20
2 365
2 294
2 807
2 607
2 644
2 441
2 976
2 304
2 457
2 628
2 660
2 886
2 847
2 471
2 865
2 600
2 594
2 763
2 482
2 814
3 115
3 446
3 ...

result:

ok Found equal strings: 657, 844

Test #30:

score: 0
Accepted
time: 15ms
memory: 3712kb

input:

1000
25
25
31
31
23
24
23
31
24
30
25
29
21
25
30
23
26
28
27
29
20
31
27
26
25
23
29
27
29
30
19
23
22
22
25
31
21
21
28
25
26
28
31
27
26
27
23
26
22
24
32
24
32
29
26
22
25
33
26
28
24
28
27
26
21
27
28
22
19
22
28
25
32
22
28
28
24
25
18
32
25
21
32
24
24
18
25
24
25
25
22
18
25
26
28
27
30
30
3...

output:

1 941
1 379
1 97
1 111
1 408
1 366
1 751
1 477
1 584
1 743
1 353
1 205
1 979
1 138
1 813
1 130
1 312
1 458
1 927
1 658
1 910
1 317
1 872
1 501
2 941
2 379
2 97
2 111
2 408
2 366
2 751
2 477
2 584
2 743
2 353
2 205
2 979
2 138
2 813
2 130
2 312
2 458
2 927
2 658
2 910
2 317
2 872
2 501
3 941
3 379
3 ...

result:

ok Found equal strings: 716, 718

Test #31:

score: 0
Accepted
time: 7ms
memory: 3584kb

input:

1000
29
29
28
24
23
20
27
25
26
23
21
29
26
25
28
23
21
34
31
26
27
28
31
22
27
31
30
24
23
20
23
23
26
25
23
29
20
23
20
27
25
24
27
26
27
24
25
30
26
24
27
21
26
23
26
22
17
26
24
20
17
22
29
24
24
27
24
27
22
29
32
23
22
32
31
19
24
23
22
26
21
26
24
28
27
26
27
22
26
29
26
25
32
21
26
27
23
29
2...

output:

1 954
1 951
1 299
1 768
1 880
1 73
1 866
1 886
1 383
1 95
1 697
1 272
1 367
1 419
1 553
1 323
1 610
1 540
1 183
1 27
1 109
1 394
1 294
1 985
2 954
2 951
2 299
2 768
2 880
2 73
2 866
2 886
2 383
2 95
2 697
2 272
2 367
2 419
2 553
2 323
2 610
2 540
2 183
2 27
2 109
2 394
2 294
2 985
3 954
3 951
3 299
...

result:

ok Found equal strings: 57, 240

Test #32:

score: 0
Accepted
time: 4ms
memory: 3712kb

input:

1000
29
26
22
23
26
24
30
18
32
23
29
28
23
23
21
24
21
25
20
27
19
28
22
27
28
31
27
18
21
27
27
29
23
24
26
27
24
24
24
25
24
22
27
24
16
29
23
26
27
22
20
31
24
24
24
22
28
23
27
26
25
23
17
26
23
29
20
23
15
24
26
21
30
27
27
32
31
29
25
29
25
22
24
31
24
20
30
27
26
18
29
22
26
25
29
26
20
27
2...

output:

1 331
1 108
1 27
1 544
1 441
1 673
1 657
1 951
1 577
1 537
1 998
1 743
1 963
1 598
1 566
1 550
1 784
1 895
1 461
1 625
1 358
1 732
1 703
1 284
2 331
2 108
2 27
2 544
2 441
2 673
2 657
2 951
2 577
2 537
2 998
2 743
2 963
2 598
2 566
2 550
2 784
2 895
2 461
2 625
2 358
2 732
2 703
2 284
3 331
3 108
3 ...

result:

ok Found equal strings: 113, 116

Test #33:

score: 0
Accepted
time: 13ms
memory: 3712kb

input:

1000
26
24
30
28
23
27
22
25
28
24
25
22
23
29
28
23
32
27
22
23
22
29
24
23
22
22
20
24
25
25
24
25
30
26
25
24
31
27
22
29
22
27
26
33
22
29
20
31
22
26
30
22
29
23
26
23
24
28
25
32
21
17
26
21
22
19
28
25
24
25
24
27
22
26
22
24
21
27
24
29
20
24
25
22
27
23
29
28
17
20
27
20
19
26
25
21
21
21
3...

output:

1 134
1 559
1 245
1 742
1 1000
1 628
1 194
1 902
1 602
1 903
1 851
1 157
1 301
1 52
1 4
1 849
1 960
1 541
1 346
1 994
1 268
1 494
1 938
1 114
2 134
2 559
2 245
2 742
2 1000
2 628
2 194
2 902
2 602
2 903
2 851
2 157
2 301
2 52
2 4
2 849
2 960
2 541
2 346
2 994
2 268
2 494
2 938
2 114
3 134
3 559
3 24...

result:

ok Found equal strings: 175, 635

Test #34:

score: 0
Accepted
time: 7ms
memory: 3712kb

input:

1000
19
27
34
23
26
31
22
29
23
25
19
27
22
28
26
19
25
27
24
21
22
28
21
26
24
24
27
26
27
30
33
26
28
32
20
24
23
19
21
24
22
26
29
20
23
29
22
25
24
28
29
22
23
28
27
30
26
30
28
26
25
23
29
26
34
30
19
24
27
21
24
23
25
29
30
23
22
23
20
27
27
25
23
25
30
28
24
21
27
19
26
21
26
22
19
26
24
22
2...

output:

1 739
1 791
1 264
1 961
1 726
1 587
1 305
1 537
1 667
1 243
1 894
1 991
1 561
1 931
1 581
1 386
1 398
1 409
1 67
1 151
1 14
1 647
1 952
1 588
2 739
2 791
2 264
2 961
2 726
2 587
2 305
2 537
2 667
2 243
2 894
2 991
2 561
2 931
2 581
2 386
2 398
2 409
2 67
2 151
2 14
2 647
2 952
2 588
3 739
3 791
3 26...

result:

ok Found equal strings: 235, 509

Test #35:

score: 0
Accepted
time: 0ms
memory: 3456kb

input:

1000
31
29
34
32
30
27
29
27
27
33
27
23
20
25
22
28
22
22
25
23
18
23
23
29
28
26
25
23
25
26
30
28
24
24
28
28
25
18
23
29
27
33
26
24
27
24
28
24
28
26
23
23
25
16
22
24
20
24
22
22
25
28
35
25
27
27
30
28
33
20
28
24
30
26
21
31
27
28
26
26
20
32
22
28
25
30
25
33
33
27
26
30
21
24
22
26
26
26
2...

output:

1 306
1 511
1 643
1 175
1 579
1 729
1 163
1 669
1 49
1 764
1 671
1 907
1 926
1 490
1 75
1 81
1 798
1 975
1 931
1 84
1 250
1 294
1 454
1 302
2 306
2 511
2 643
2 175
2 579
2 729
2 163
2 669
2 49
2 764
2 671
2 907
2 926
2 490
2 75
2 81
2 798
2 975
2 931
2 84
2 250
2 294
2 454
2 302
3 306
3 511
3 643
3 ...

result:

ok Found equal strings: 30, 294

Test #36:

score: 0
Accepted
time: 20ms
memory: 3712kb

input:

1000
25
26
28
27
26
21
27
28
23
26
20
25
26
25
22
25
30
19
26
26
26
25
22
28
23
30
18
29
26
23
25
28
15
28
24
23
24
27
20
17
24
25
22
28
30
29
22
24
30
27
25
20
27
24
36
27
32
27
31
24
21
22
23
30
29
26
27
29
19
22
27
23
20
33
27
24
29
16
26
25
20
25
21
28
23
32
29
22
31
26
27
21
29
20
31
27
28
23
2...

output:

1 6
1 417
1 823
1 27
1 498
1 463
1 178
1 832
1 863
1 945
1 970
1 418
1 767
1 428
1 693
1 642
1 251
1 110
1 457
1 979
1 425
1 119
1 310
1 876
2 6
2 417
2 823
2 27
2 498
2 463
2 178
2 832
2 863
2 945
2 970
2 418
2 767
2 428
2 693
2 642
2 251
2 110
2 457
2 979
2 425
2 119
2 310
2 876
3 6
3 417
3 823
3 ...

result:

ok Found equal strings: 634, 904

Test #37:

score: 0
Accepted
time: 22ms
memory: 3712kb

input:

1000
23
30
28
23
24
20
27
26
24
26
25
26
27
25
25
24
26
25
23
31
28
29
24
29
34
25
29
26
23
21
22
27
23
27
18
27
26
20
30
27
29
26
32
26
25
22
27
26
26
27
21
26
19
21
24
29
23
31
26
27
30
22
28
25
23
28
28
32
33
18
27
28
27
24
26
25
16
22
25
26
22
22
23
30
25
27
25
30
28
27
21
23
28
15
28
27
15
20
3...

output:

1 901
1 479
1 214
1 80
1 744
1 123
1 597
1 141
1 859
1 69
1 495
1 533
1 251
1 24
1 86
1 897
1 877
1 658
1 550
1 935
1 925
1 445
1 179
1 666
2 901
2 479
2 214
2 80
2 744
2 123
2 597
2 141
2 859
2 69
2 495
2 533
2 251
2 24
2 86
2 897
2 877
2 658
2 550
2 935
2 925
2 445
2 179
2 666
3 901
3 479
3 214
3 ...

result:

ok Found equal strings: 693, 778

Test #38:

score: 0
Accepted
time: 23ms
memory: 3712kb

input:

1000
26
27
28
24
27
18
24
17
32
24
15
22
22
24
20
24
31
22
31
25
22
29
27
24
27
24
29
27
24
23
25
26
23
31
30
29
19
23
29
27
20
23
22
30
23
24
24
27
22
23
26
24
25
24
28
27
22
34
27
28
26
26
28
24
21
22
21
29
28
23
23
30
29
24
23
25
32
29
21
26
21
21
22
23
31
29
31
23
22
27
28
26
25
26
24
23
31
22
2...

output:

1 530
1 448
1 106
1 506
1 752
1 948
1 785
1 918
1 561
1 28
1 693
1 668
1 962
1 840
1 636
1 888
1 992
1 916
1 964
1 894
1 898
1 147
1 132
1 363
2 530
2 448
2 106
2 506
2 752
2 948
2 785
2 918
2 561
2 28
2 693
2 668
2 962
2 840
2 636
2 888
2 992
2 916
2 964
2 894
2 898
2 147
2 132
2 363
3 530
3 448
3 ...

result:

ok Found equal strings: 336, 912

Test #39:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

2
0

output:

1 2

result:

ok Found equal strings: 1, 2

Extra Test:

score: 0
Extra Test Passed