QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#175535#5522. F*** 3-Colorable GraphsConfucianDonutRE 118ms103228kbC++14856b2023-09-10 19:15:102023-09-10 19:15:11

Judging History

你现在查看的是最新测评结果

  • [2023-09-10 19:15:11]
  • 评测
  • 测评结果:RE
  • 用时:118ms
  • 内存:103228kb
  • [2023-09-10 19:15:10]
  • 提交

answer

#include <iostream>
#include <vector>

using namespace std;

bool vis[10000][10000];

int main() {
    int n,m;
    cin >> n >> m;
    vector <int> graph[n];
    int a,b;
    for (int i=0; i<m; i++) {
        cin >> a >> b;
        graph[a-1].push_back(b-n);
    }
    for (int i=0; i<n; i++) {
        for (int j=0; j<graph[i].size(); j++) {
            for (int k=0; k<graph[i].size(); k++) {
                int el1 = graph[i][j];
                int el2 = graph[i][k];
                if (el1==el2) {
                    continue;
                }
                //cout << el1 << " " << el2 << endl;
                if (vis[el1][el2]) {
                    cout << 2 << endl;
                    return 0;
                }
                vis[el1][el2] = true;
            }
        }
    }
    cout << 3 << endl;
}

详细

Test #1:

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

input:

2 4
1 3
1 4
2 3
2 4

output:

2

result:

ok 1 number(s): "2"

Test #2:

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

input:

3 5
1 4
2 4
2 5
3 5
3 6

output:

3

result:

ok 1 number(s): "3"

Test #3:

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

input:

10000 20000
4570 11730
8803 16440
4257 15381
4455 17636
5256 13543
2172 18421
7735 17847
8537 16010
6175 12263
1079 13410
335 15901
3272 16233
7435 11454
4469 13374
1564 13416
1264 13446
7484 14510
8193 12267
628 15585
1388 11398
5444 19958
2059 18140
8947 13188
6214 17707
7940 12253
6726 11508
1839...

output:

3

result:

ok 1 number(s): "3"

Test #4:

score: 0
Accepted
time: 85ms
memory: 102992kb

input:

9999 199986
8408 17344
1353 16706
3364 17274
9410 10006
9387 19375
9169 18239
3930 12759
4728 11328
5192 17935
7616 19485
3138 12714
8595 18490
6020 15039
9319 17097
7842 16814
7644 18723
2190 10117
3971 13350
232 15408
6984 12842
6988 17196
9744 18905
6759 13371
4115 18937
1842 13513
6245 18736
207...

output:

2

result:

ok 1 number(s): "2"

Test #5:

score: 0
Accepted
time: 101ms
memory: 103000kb

input:

9999 199986
1284 14140
5071 12232
7015 15577
4211 14089
3764 14645
4634 19044
1944 18455
5249 19603
1607 10182
9986 19929
1132 18778
3848 10147
636 10961
1994 14118
5084 18986
4067 19483
2288 17337
3108 15530
2258 12709
9809 14997
4860 11548
1779 13012
5062 16123
7418 10293
7726 11733
1145 14062
369...

output:

3

result:

ok 1 number(s): "3"

Test #6:

score: 0
Accepted
time: 94ms
memory: 102928kb

input:

9999 199987
3436 14265
222 15269
5540 12401
4384 10718
6743 19890
8221 16226
9005 14140
9863 11639
2152 19586
2757 14815
481 13850
3599 12891
5952 10977
8143 17941
2026 15710
5910 16369
5513 10925
5772 12885
7065 11342
8361 17923
5299 13781
3196 10966
430 14596
550 13223
3256 17779
6078 13305
5648 1...

output:

3

result:

ok 1 number(s): "3"

Test #7:

score: 0
Accepted
time: 94ms
memory: 102932kb

input:

9999 199988
448 11962
23 11944
5051 16992
4694 15126
5619 18509
283 12368
9283 13749
8666 13468
9704 13819
1156 17681
5584 15047
4002 12020
4132 12330
6517 16453
6626 18447
6875 19095
1121 18883
27 13565
5156 16000
1038 19156
3115 10774
4188 16379
9700 11423
1821 15792
1829 19849
7895 14361
273 1171...

output:

3

result:

ok 1 number(s): "3"

Test #8:

score: 0
Accepted
time: 110ms
memory: 102988kb

input:

9999 199989
5094 18037
3735 11120
5076 12536
7197 15317
8382 16357
1120 10650
3029 15062
6786 14917
9050 18178
5310 16842
6801 19176
6684 13049
2642 10752
3258 18536
1547 14065
9941 16349
70 13658
8055 13817
4079 11228
5959 10779
180 12999
4796 14531
4736 14130
9587 15391
456 17458
2927 18426
8200 1...

output:

3

result:

ok 1 number(s): "3"

Test #9:

score: 0
Accepted
time: 102ms
memory: 103156kb

input:

9999 199990
7767 17384
2351 16592
1740 13435
6736 15343
2870 13927
2392 19280
6593 15197
1551 11497
4026 13218
9283 18493
6908 18472
3364 19987
3241 18025
9134 15503
3244 17055
3298 14535
3919 19196
8242 19849
7598 13197
3105 15864
147 11948
6903 12658
5141 17398
6969 12053
2662 17452
5764 14717
189...

output:

3

result:

ok 1 number(s): "3"

Test #10:

score: 0
Accepted
time: 103ms
memory: 102968kb

input:

9999 199991
3291 16273
226 18073
7487 15435
1491 16286
6130 13276
8585 16323
6842 11678
2111 17229
477 19001
3357 15937
8305 11249
1554 14466
4443 18841
3506 18862
5514 19459
3539 10480
3849 14524
1884 12492
6517 14698
8587 12383
4530 17389
4383 15441
9481 12847
4516 18050
2713 14163
2070 15055
9625...

output:

3

result:

ok 1 number(s): "3"

Test #11:

score: 0
Accepted
time: 104ms
memory: 102876kb

input:

9999 199993
2335 14493
9141 16214
1417 10716
5544 17576
4997 15035
5205 17840
3968 18790
668 17130
6035 10183
3278 18222
6202 15455
21 12990
9830 19493
2407 17362
4680 11842
6997 19101
4521 13784
1273 19776
827 15240
9596 15384
2875 11780
9312 16707
5649 12637
8663 12350
5566 17959
1619 12998
6490 1...

output:

2

result:

ok 1 number(s): "2"

Test #12:

score: 0
Accepted
time: 73ms
memory: 103144kb

input:

9999 199994
9458 14548
6018 19758
199 12677
4732 13451
4698 11128
8241 14617
6518 10875
8333 17651
2732 13675
2127 14984
1354 12015
2897 17058
6896 16037
546 12435
4340 18337
6250 15427
7454 13191
5207 10882
3690 19415
6265 14229
3573 17323
8269 14593
692 18301
7016 18103
1117 17097
7840 15596
2896 ...

output:

2

result:

ok 1 number(s): "2"

Test #13:

score: 0
Accepted
time: 91ms
memory: 103000kb

input:

9999 199995
2206 19276
8512 15696
6390 12136
4048 18969
2035 19175
7724 15620
7823 11377
2847 13114
6767 14065
5825 12916
5920 15627
9397 15431
8383 17174
2674 12767
3179 16759
1587 14186
4146 13179
4017 16558
1876 13548
9659 12440
9606 17367
7953 11024
6310 10073
8643 17223
9626 16601
441 17619
287...

output:

2

result:

ok 1 number(s): "2"

Test #14:

score: 0
Accepted
time: 66ms
memory: 102900kb

input:

9999 199996
363 19358
6951 18873
8851 19662
211 19818
6614 11711
9529 11595
7916 14951
7870 19632
1547 13402
4257 19275
4549 16778
6083 11064
5118 12638
779 15309
3010 14286
1917 15974
8333 12598
7558 17568
8737 14059
3060 12113
4318 10493
5121 14889
9485 13139
2279 12389
8040 11112
6623 16400
7760 ...

output:

2

result:

ok 1 number(s): "2"

Test #15:

score: 0
Accepted
time: 92ms
memory: 102936kb

input:

9999 199997
5538 15784
5775 19178
491 10172
7692 17593
9268 15603
9233 13637
2552 12658
1910 13501
8806 15179
1384 19199
1672 16094
9510 12151
7611 19538
729 19555
5125 18661
8910 18499
480 14200
4125 14316
8129 14814
7145 11770
924 12802
2278 11173
7323 17658
508 12939
9237 11184
4378 19856
3681 10...

output:

2

result:

ok 1 number(s): "2"

Test #16:

score: 0
Accepted
time: 118ms
memory: 102996kb

input:

9999 199997
3361 10129
4115 14259
1482 14425
2095 13283
1140 17857
8556 16601
4023 14864
5516 12856
6503 17450
2783 10817
4606 18604
7695 11174
7621 14012
2536 17077
9278 15989
9763 16626
3812 10052
5882 12772
6465 11058
6671 18514
9046 14814
7444 15541
7106 12077
8711 18841
878 10954
3093 16469
347...

output:

3

result:

ok 1 number(s): "3"

Test #17:

score: 0
Accepted
time: 109ms
memory: 103192kb

input:

9999 199998
9814 19377
9308 17674
8995 13703
432 17153
9285 18418
830 10685
4597 16742
5277 19909
9217 18218
9987 13899
1529 19955
7440 14275
7203 10641
5287 11358
2487 18971
1397 17738
7803 15822
9780 17091
6116 16949
3696 12404
3018 15579
6738 16989
1768 18020
2750 14215
7558 16485
2151 18902
9129...

output:

3

result:

ok 1 number(s): "3"

Test #18:

score: 0
Accepted
time: 87ms
memory: 103228kb

input:

9999 200000
1033 10643
4542 13953
4776 10664
846 17527
5840 14947
8166 11144
3957 18045
8736 12143
211 19534
4776 16656
9366 18999
7283 17898
8327 14611
2425 10379
7700 10503
4187 17095
4582 14627
7889 19818
3907 12486
1137 15302
2920 14818
9171 15782
5167 12958
9193 18056
314 19102
8264 13330
1943 ...

output:

2

result:

ok 1 number(s): "2"

Test #19:

score: 0
Accepted
time: 3ms
memory: 35236kb

input:

8150 16300
714 11376
415 9250
4911 9685
3451 11069
2331 8433
2557 13540
6968 9053
1738 8710
4664 12771
4134 14511
6520 13078
5331 9129
7564 11673
165 13262
4662 13935
3829 15954
4251 10582
5230 13764
3419 8820
1612 11731
4787 15243
374 12920
727 15373
951 14559
5137 14086
6349 13163
6603 9083
6892 1...

output:

2

result:

ok 1 number(s): "2"

Test #20:

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

input:

8313 16626
3971 10372
5856 11598
3636 15341
3819 15252
218 9509
3227 12825
7210 14905
7479 10723
3046 14780
4042 14078
4612 12075
5541 14615
6964 14947
7716 11357
3172 15952
5169 15794
697 10070
5251 14357
6125 12242
3504 8370
3807 11495
6742 11811
3521 13122
3201 14490
6397 12897
3928 14337
5965 16...

output:

2

result:

ok 1 number(s): "2"

Test #21:

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

input:

8476 16951
272 11630
72 12296
5589 10521
4235 13556
1225 10336
1119 10721
4548 10967
3798 13281
2638 16658
1305 9298
1627 11590
4504 14979
3895 8609
7656 12831
2123 9604
3840 9599
1805 9267
1157 10665
7374 13326
7871 10665
2558 15579
7835 12577
6042 14314
5604 16453
65 12172
105 12508
4525 16078
363...

output:

3

result:

ok 1 number(s): "3"

Test #22:

score: 0
Accepted
time: 8ms
memory: 46124kb

input:

8639 17278
3808 9002
7920 10789
2022 9697
4868 9149
476 16243
3035 15635
3267 13373
7695 12633
3295 14615
3211 9752
7564 15802
6022 9156
4591 13753
4072 11008
43 10536
6516 13136
1015 14141
2300 12314
4003 8733
5684 10961
104 16408
1591 9189
5936 16447
5065 16659
8051 12868
4533 9196
7171 15055
2947...

output:

2

result:

ok 1 number(s): "2"

Test #23:

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

input:

8802 17603
3149 13968
5101 9246
2111 17600
2284 16214
4100 9847
4778 9791
1148 12995
3967 8969
7841 13508
2550 10774
8693 11426
8184 12357
7311 11607
2644 8879
6133 17151
997 13228
730 17148
6144 9177
4551 17541
2508 10409
3744 10655
5254 12255
2876 17023
4622 8948
4107 8959
3018 11020
5363 10165
80...

output:

3

result:

ok 1 number(s): "3"

Test #24:

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

input:

8965 17929
7637 16678
6981 16236
851 9134
6034 13997
6808 17061
955 12544
8742 12320
4091 11549
2489 12442
7232 10825
7837 16645
5335 14031
963 14789
1788 9926
2570 11371
2667 10025
6530 12663
8718 12914
8005 14020
6081 17284
1201 9472
543 15546
3681 12809
331 14980
838 13661
1933 14967
8267 10945
1...

output:

3

result:

ok 1 number(s): "3"

Test #25:

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

input:

9128 18256
7782 13159
4087 10273
6257 12527
5070 16039
4690 16290
3469 12208
6174 11884
6012 10370
3425 15684
2385 16013
2673 17457
3690 18039
8993 15267
2378 17967
2738 17358
2646 11448
9021 12530
7506 14775
8655 15550
6074 17958
9087 14541
787 9776
8318 9500
3594 15645
782 17382
8909 15438
7461 14...

output:

2

result:

ok 1 number(s): "2"

Test #26:

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

input:

9291 18581
2001 13860
7812 12559
4773 12448
6668 11446
4040 16339
2356 17550
8323 15596
3403 16933
940 12927
1254 10168
4143 18463
2614 10103
2953 12664
5081 11692
8388 17073
8805 13758
7407 18029
7167 16152
7568 17141
6675 11890
694 15109
1656 17930
1728 11810
6933 12988
8893 14083
8955 14025
3968 ...

output:

3

result:

ok 1 number(s): "3"

Test #27:

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

input:

9454 18907
3536 15594
7328 16932
5114 10597
3849 17816
2504 12887
8574 16051
3988 18793
6792 14286
947 11681
3706 9611
5001 17521
2961 10013
7927 17140
3618 17017
6272 16474
9450 15792
6275 15545
4664 16367
6165 14150
2173 16172
4418 9699
2670 10443
3465 12331
6401 15366
7908 10283
1729 17362
1202 1...

output:

3

result:

ok 1 number(s): "3"

Test #28:

score: 0
Accepted
time: 8ms
memory: 63272kb

input:

9617 19234
705 18762
3501 10055
4984 18074
6354 10792
7343 14140
4346 10060
2920 14019
2753 18625
4273 9853
2442 16246
6798 12520
8238 17072
1852 18366
356 16352
3423 18805
3575 18946
435 15017
5612 15487
4544 12845
1152 19083
6348 9970
6452 16436
2647 9621
2839 18182
5972 12102
9467 10546
6738 1348...

output:

2

result:

ok 1 number(s): "2"

Test #29:

score: 0
Accepted
time: 21ms
memory: 73420kb

input:

9780 19559
2541 17344
1313 13484
3367 17132
6057 16121
7786 17783
7780 13534
8271 17349
3337 18400
8036 16808
7701 15270
7226 11672
7625 13075
2643 14066
5599 17154
9001 13147
1329 10549
6037 16490
7019 15139
8675 18800
3585 16157
1978 15454
1790 16123
7291 9854
6650 17016
5882 14520
7144 18976
30 1...

output:

3

result:

ok 1 number(s): "3"

Test #30:

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

input:

9943 19886
3308 17792
8106 12252
7161 18801
9175 19384
3212 10691
3355 11937
8375 17437
5610 16105
7072 12924
9529 11530
493 19415
5314 15094
636 12795
7631 12467
8902 11281
9549 14694
637 12844
9236 10841
3934 11900
530 10349
116 12767
8100 16836
834 19494
5125 17316
4453 10660
5523 17230
6448 1685...

output:

2

result:

ok 1 number(s): "2"

Test #31:

score: 0
Accepted
time: 93ms
memory: 101440kb

input:

9807 199985
7623 19300
9178 14028
5000 18373
4206 15902
5964 14283
4648 14084
6982 14988
1863 15411
2257 11432
501 15194
4366 13800
367 10745
8417 17893
4297 16634
688 15143
637 13964
1956 16506
939 13521
7415 10906
1596 13671
8663 11882
4076 16839
6457 13186
1580 16528
4078 11007
7344 17597
7615 14...

output:

3

result:

ok 1 number(s): "3"

Test #32:

score: 0
Accepted
time: 90ms
memory: 101244kb

input:

9807 199987
7151 18305
3142 18146
2075 17526
7887 15019
1011 17093
2843 14230
4427 13297
6841 18143
9637 12229
9451 14775
4083 12286
9716 11744
7112 12037
6507 12292
1198 13987
498 18172
6088 10200
220 12089
3132 10121
9308 15996
4116 16123
7855 14820
5282 17334
5343 13097
5040 14766
5599 13198
3045...

output:

2

result:

ok 1 number(s): "2"

Test #33:

score: 0
Accepted
time: 111ms
memory: 101176kb

input:

9807 199987
5246 14655
3145 18938
336 16437
1450 11493
3038 17947
599 19059
6906 10672
3506 17363
6748 12223
227 13127
8946 15194
2509 13722
8143 12579
4733 10238
8390 12801
4008 15669
9764 17413
9353 10045
5291 19219
49 19552
6027 12930
1703 19371
7770 15280
3155 10814
1239 15175
854 11389
7790 981...

output:

3

result:

ok 1 number(s): "3"

Test #34:

score: 0
Accepted
time: 86ms
memory: 101476kb

input:

9807 199989
1775 17474
9530 15029
6448 10386
7658 15002
3969 17818
6840 17354
4812 10320
931 18485
5479 16685
2305 10860
9126 12045
6366 17294
405 15334
4209 18046
4070 16206
6870 12933
7794 15852
1989 10454
9692 14681
759 9962
2192 15214
377 12216
5874 13742
5478 10762
412 16421
6966 18201
8340 147...

output:

2

result:

ok 1 number(s): "2"

Test #35:

score: 0
Accepted
time: 80ms
memory: 101252kb

input:

9807 199990
2835 17190
88 10239
4104 17147
7194 13179
9550 11899
426 13977
2156 17184
3496 19413
5224 16316
5020 10120
4976 14314
5764 11864
5937 15040
8558 16102
6072 12961
3745 13045
6977 14225
7670 14954
9035 18439
880 18184
6702 14006
7647 14714
948 13879
6379 15287
8457 17757
3795 13201
2288 15...

output:

2

result:

ok 1 number(s): "2"

Test #36:

score: 0
Accepted
time: 104ms
memory: 101216kb

input:

9807 199990
7649 17242
412 15046
7098 9900
6417 12553
6137 17750
9302 11416
2818 11889
3672 14595
7265 12807
3886 9861
400 11473
7293 10515
4913 11457
2598 19423
1073 18141
1651 15841
214 18977
8983 19367
2076 11810
4783 15800
3347 14769
3889 13021
4467 11023
7495 19092
5249 12487
3153 14098
4086 11...

output:

3

result:

ok 1 number(s): "3"

Test #37:

score: 0
Accepted
time: 70ms
memory: 101240kb

input:

9807 199992
8603 14486
6705 16938
4144 12617
3881 10429
8147 19520
8574 18361
5612 19149
7766 16027
8619 18768
408 13938
4129 16821
1567 16481
9167 15198
9511 15081
5563 15612
1241 17710
3957 19199
9391 18858
2627 16321
9407 18980
9497 13953
7328 17834
6719 16480
7740 14799
8698 17126
2581 12827
600...

output:

2

result:

ok 1 number(s): "2"

Test #38:

score: 0
Accepted
time: 77ms
memory: 100856kb

input:

9807 199993
6493 16838
5887 14883
9234 11202
219 15544
1664 15259
1842 14078
8035 10165
6086 19433
3355 14155
6555 11898
3952 15947
4810 16140
913 14492
1363 18476
2151 14629
343 14083
6103 17141
7912 14445
2998 14214
5808 18519
2783 15705
5534 17630
5482 18159
5880 12061
8103 16988
5921 14568
47 13...

output:

2

result:

ok 1 number(s): "2"

Test #39:

score: 0
Accepted
time: 96ms
memory: 101164kb

input:

9807 199993
1854 12702
3634 13379
3763 10887
2488 18349
1516 15539
7278 12788
843 16278
4304 15696
7810 16340
2928 15041
4080 14999
4527 14733
2361 16048
7023 11550
315 18104
7316 18325
2007 15850
1678 15862
6711 14972
2582 11370
9191 13402
155 18503
7417 11729
6438 15069
7854 12851
6193 11072
2238 ...

output:

3

result:

ok 1 number(s): "3"

Test #40:

score: 0
Accepted
time: 92ms
memory: 101232kb

input:

9807 199995
2336 13942
6946 15960
6305 16858
8851 10262
8234 10066
1899 17058
9358 11657
8252 15659
368 12916
3112 11860
4520 12726
805 19289
9448 11630
3414 11995
7834 16131
1723 19182
26 11812
8369 10266
731 10587
2817 14620
1395 16416
3529 12124
2407 18857
1945 11246
9779 18864
2899 11510
9190 10...

output:

2

result:

ok 1 number(s): "2"

Test #41:

score: 0
Accepted
time: 98ms
memory: 101476kb

input:

9807 199995
5319 15364
2503 19528
284 16536
8070 16974
1361 13751
1728 18544
4195 16286
2553 16394
2093 14700
7483 13705
9785 19593
7101 17303
8734 15386
6011 10584
2181 19201
2853 17903
2130 18254
1941 15393
5789 16753
6343 10304
2046 17805
5526 10673
2184 16623
1548 11798
5541 9962
542 16466
6329 ...

output:

3

result:

ok 1 number(s): "3"

Test #42:

score: 0
Accepted
time: 94ms
memory: 101180kb

input:

9807 199997
6626 10577
7420 17996
4902 10063
8809 16140
5802 10984
7799 13282
9293 10727
7625 10137
8888 15767
3794 12978
7789 12973
1789 14356
6957 18928
6464 18281
3698 14691
7769 14790
1487 15896
8600 13867
813 13951
7916 12549
6776 14908
1206 17632
9513 16386
216 15208
6409 13614
1861 14685
841 ...

output:

2

result:

ok 1 number(s): "2"

Test #43:

score: 0
Accepted
time: 101ms
memory: 101240kb

input:

9807 199997
4844 18982
2490 17994
5340 13710
9703 18938
6661 11372
7902 14822
4571 10708
80 14011
4626 17349
489 19486
6441 16354
8956 17217
7128 19377
8164 11607
3297 17699
9669 11468
5296 11602
2032 11908
6858 19087
4013 17243
8878 16245
7452 14182
443 16360
4210 19596
5671 15590
9713 15419
6940 1...

output:

3

result:

ok 1 number(s): "3"

Test #44:

score: 0
Accepted
time: 103ms
memory: 101128kb

input:

9807 199998
6137 16834
391 15169
4582 14850
5682 18125
3119 13919
3414 11909
7167 18563
8512 19454
4521 18453
9114 15340
3203 13249
7092 15073
8493 14044
2840 11535
4287 11208
1774 16150
8256 18590
8773 10220
6425 10633
5042 16196
5975 14657
4630 16271
4773 13607
9796 17862
4308 12491
647 17508
6371...

output:

3

result:

ok 1 number(s): "3"

Test #45:

score: 0
Accepted
time: 92ms
memory: 101232kb

input:

9807 200000
1964 11910
7583 17403
753 19556
5999 15729
829 10450
8801 12350
3986 12685
8072 13558
1969 12186
8495 17946
9088 16863
3351 14324
2459 18198
6081 14715
4494 14760
6288 15164
4056 13337
2921 16938
2822 13286
9638 19560
3829 10189
117 16109
1182 17990
4089 11048
6863 13978
4499 9927
8438 1...

output:

2

result:

ok 1 number(s): "2"

Test #46:

score: -100
Runtime Error

input:

10000 21000
6801 15065
7499 10384
3436 14304
6277 12871
1867 17863
4168 19259
6106 17303
3503 12792
2801 10493
3255 13138
3302 19124
5859 17722
6174 12365
6392 19073
4753 18255
2952 15560
2173 12114
7174 10724
4275 12474
5599 11731
2190 16648
7953 17970
2690 16566
2803 17429
24 17571
2529 10482
6324...

output:


result: