-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-1input
2000 lines (2000 loc) · 9.54 KB
/
01-1input
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
103
112
111
133
132
128
136
138
133
136
137
140
144
156
155
172
171
172
185
203
206
209
208
212
209
210
211
214
245
247
249
246
274
276
294
292
297
291
304
311
325
336
337
344
350
357
359
356
379
381
382
384
379
375
376
377
376
369
373
338
339
365
373
385
394
395
396
399
400
406
439
440
438
443
433
435
432
451
443
427
422
428
429
436
435
437
433
447
468
469
478
475
494
493
495
499
506
492
494
493
494
498
499
521
546
547
549
550
551
550
547
570
575
578
595
602
594
582
592
597
592
571
562
556
558
560
569
570
585
558
574
567
576
577
591
592
600
603
601
594
601
592
614
615
617
623
646
647
650
652
683
686
687
688
689
690
694
705
706
723
719
723
728
739
738
751
769
770
794
797
793
794
819
826
829
832
844
845
847
839
847
861
859
860
861
857
859
860
858
869
857
835
832
860
868
872
873
871
850
866
865
891
892
896
914
916
918
922
921
922
930
931
959
957
958
971
969
970
969
975
974
968
981
994
989
995
998
1006
1009
1015
1017
1018
1028
1029
1008
1013
1035
1056
1062
1064
1065
1066
1065
1067
1068
1073
1075
1078
1083
1063
1067
1069
1071
1074
1077
1076
1072
1098
1099
1084
1085
1057
1061
1081
1090
1094
1095
1096
1090
1094
1095
1102
1133
1132
1144
1147
1137
1140
1146
1147
1148
1149
1150
1156
1175
1184
1187
1191
1192
1201
1237
1239
1240
1241
1236
1237
1263
1268
1271
1265
1283
1288
1301
1309
1320
1321
1314
1310
1309
1322
1323
1324
1318
1317
1319
1318
1312
1328
1332
1331
1332
1349
1345
1363
1356
1357
1356
1360
1359
1368
1379
1395
1389
1390
1397
1388
1389
1390
1392
1414
1420
1421
1422
1427
1437
1438
1432
1430
1459
1458
1466
1467
1469
1470
1480
1478
1479
1478
1484
1485
1491
1494
1496
1504
1514
1536
1568
1592
1599
1602
1603
1609
1611
1612
1613
1627
1626
1632
1640
1651
1657
1658
1665
1682
1683
1691
1692
1695
1698
1704
1703
1710
1720
1721
1729
1727
1728
1729
1730
1734
1735
1737
1742
1748
1749
1758
1760
1761
1767
1768
1770
1771
1757
1770
1807
1821
1825
1828
1827
1842
1854
1855
1860
1859
1851
1849
1851
1855
1858
1888
1887
1899
1935
1938
1921
1918
1920
1924
1923
1925
1928
1925
1930
1931
1942
1943
1952
1959
1951
1952
1951
1946
1956
1965
1982
1978
1980
1982
1977
1979
1978
1986
1988
2000
1979
1986
1988
1955
1946
1951
1965
1967
1968
1967
1973
1976
1977
1976
1975
1992
2004
2009
2013
2016
2015
2018
2016
2020
2004
2003
2031
2020
2022
2055
2059
2056
2058
2059
2062
2063
2069
2098
2122
2112
2111
2119
2117
2118
2145
2146
2145
2148
2149
2182
2188
2218
2226
2233
2235
2242
2243
2242
2261
2274
2280
2273
2283
2311
2318
2322
2324
2314
2323
2324
2328
2335
2337
2334
2335
2346
2342
2356
2360
2361
2392
2396
2412
2419
2423
2426
2442
2441
2412
2414
2422
2428
2441
2457
2458
2459
2461
2462
2467
2468
2469
2479
2483
2487
2493
2499
2503
2516
2510
2520
2521
2518
2504
2512
2513
2529
2530
2533
2516
2514
2509
2518
2527
2530
2534
2530
2533
2542
2557
2558
2560
2555
2557
2569
2570
2580
2591
2577
2602
2603
2608
2609
2596
2594
2605
2603
2607
2611
2614
2616
2617
2618
2617
2624
2621
2626
2630
2631
2614
2619
2622
2640
2641
2654
2658
2661
2666
2686
2695
2722
2721
2722
2723
2698
2705
2706
2710
2730
2732
2738
2745
2752
2753
2750
2748
2749
2747
2749
2754
2763
2749
2747
2743
2735
2737
2729
2725
2700
2711
2721
2698
2704
2705
2706
2707
2725
2728
2733
2734
2741
2742
2753
2755
2756
2757
2756
2762
2765
2766
2768
2769
2790
2796
2833
2820
2821
2829
2842
2839
2841
2846
2841
2844
2839
2841
2821
2822
2841
2852
2858
2870
2862
2857
2879
2895
2876
2867
2877
2878
2880
2881
2891
2888
2887
2889
2891
2900
2902
2919
2920
2922
2941
2948
2946
2947
2942
2943
2940
2941
2943
2947
2938
2944
2930
2929
2928
2935
2938
2941
2946
2951
2955
2957
2958
2961
2965
2986
2981
2990
2991
2997
2988
2992
2987
2983
2992
2986
3013
3027
3015
3012
3020
3028
3030
3033
3032
3035
3038
3040
3041
3057
3056
3061
3037
3032
3038
3040
3059
3057
3058
3059
3068
3066
3065
3072
3053
3059
3066
3067
3084
3086
3090
3088
3110
3108
3126
3143
3150
3168
3162
3163
3166
3160
3156
3160
3165
3175
3174
3179
3207
3209
3211
3228
3235
3237
3239
3250
3251
3253
3256
3257
3258
3267
3272
3258
3275
3279
3286
3290
3295
3292
3293
3296
3305
3319
3321
3327
3332
3333
3350
3351
3356
3355
3357
3346
3355
3356
3354
3355
3351
3352
3353
3358
3359
3380
3382
3395
3394
3395
3398
3402
3404
3405
3398
3415
3427
3437
3431
3430
3435
3431
3440
3442
3425
3438
3449
3462
3467
3476
3477
3481
3484
3481
3483
3484
3483
3478
3483
3485
3496
3490
3497
3499
3500
3515
3508
3495
3501
3502
3512
3511
3513
3512
3525
3553
3552
3555
3556
3557
3556
3560
3561
3551
3553
3579
3587
3588
3600
3588
3584
3588
3589
3590
3597
3590
3589
3590
3593
3592
3596
3598
3591
3597
3620
3621
3612
3617
3618
3623
3628
3629
3635
3650
3651
3652
3659
3642
3647
3643
3644
3653
3654
3650
3656
3657
3663
3664
3671
3672
3675
3673
3664
3647
3669
3670
3675
3673
3675
3697
3717
3718
3717
3718
3728
3741
3742
3748
3766
3772
3736
3740
3762
3783
3788
3789
3792
3801
3804
3772
3771
3768
3746
3745
3783
3806
3795