-
Notifications
You must be signed in to change notification settings - Fork 14
/
at-most-4-connected-dots.txt
1624 lines (1624 loc) · 7.93 KB
/
at-most-4-connected-dots.txt
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
1234
1235
1236
1238
1243
1245
1247
1248
1249
1253
1254
1256
1257
1258
1259
1263
1265
1267
1268
1269
1274
1275
1276
1278
1294
1295
1296
1298
1423
1425
1426
1427
1429
1432
1435
1436
1438
1452
1453
1456
1457
1458
1459
1472
1475
1476
1478
1483
1485
1486
1487
1489
1492
1495
1496
1498
1523
1524
1526
1527
1528
1529
1532
1534
1536
1537
1538
1542
1543
1546
1547
1548
1549
1562
1563
1564
1567
1568
1569
1572
1573
1574
1576
1578
1582
1583
1584
1586
1587
1589
1592
1594
1596
1598
1623
1624
1625
1627
1629
1632
1634
1635
1638
1639
1652
1653
1654
1657
1658
1659
1672
1674
1675
1678
1683
1684
1685
1687
1689
1692
1693
1694
1695
1698
1832
1834
1835
1836
1842
1843
1845
1847
1849
1852
1853
1854
1856
1857
1859
1862
1863
1865
1867
1869
1872
1874
1875
1876
1879
1892
1894
1895
1896
1897
2134
2135
2136
2138
2143
2145
2147
2148
2149
2153
2154
2156
2157
2158
2159
2163
2165
2167
2168
2169
2183
2184
2185
2186
2187
2189
2314
2315
2316
2318
2341
2345
2347
2348
2349
2351
2354
2356
2357
2358
2359
2361
2365
2367
2368
2369
2381
2384
2385
2386
2387
2389
2413
2415
2416
2417
2418
2431
2435
2436
2438
2451
2453
2456
2457
2458
2459
2471
2475
2476
2478
2481
2483
2485
2486
2487
2489
2495
2496
2498
2513
2514
2516
2518
2519
2531
2534
2536
2537
2538
2541
2543
2546
2547
2548
2549
2561
2563
2564
2567
2568
2569
2573
2574
2576
2578
2581
2583
2584
2586
2587
2589
2591
2594
2596
2598
2613
2614
2615
2618
2631
2634
2635
2638
2639
2651
2653
2654
2657
2658
2659
2674
2675
2678
2681
2683
2684
2685
2687
2689
2693
2694
2695
2698
2741
2743
2745
2748
2749
2751
2753
2754
2756
2758
2759
2761
2763
2765
2768
2769
2781
2783
2784
2785
2786
2789
2941
2943
2945
2947
2948
2951
2953
2954
2956
2957
2958
2961
2963
2965
2967
2968
2981
2983
2984
2985
2986
2987
3214
3215
3216
3218
3241
3245
3247
3248
3249
3251
3254
3256
3257
3258
3259
3261
3265
3267
3268
3269
3274
3275
3276
3278
3294
3295
3296
3298
3412
3415
3416
3417
3418
3421
3425
3426
3427
3429
3451
3452
3456
3457
3458
3459
3471
3472
3475
3476
3478
3481
3485
3486
3487
3489
3492
3495
3496
3498
3512
3514
3516
3518
3519
3521
3524
3526
3527
3528
3529
3541
3542
3546
3547
3548
3549
3561
3562
3564
3567
3568
3569
3572
3574
3576
3578
3581
3582
3584
3586
3587
3589
3591
3592
3594
3596
3598
3612
3614
3615
3618
3621
3624
3625
3627
3629
3651
3652
3654
3657
3658
3659
3672
3674
3675
3678
3681
3684
3685
3687
3689
3692
3694
3695
3698
3812
3814
3815
3816
3841
3842
3845
3847
3849
3851
3852
3854
3856
3857
3859
3861
3862
3865
3867
3869
3872
3874
3875
3876
3879
3892
3894
3895
3896
3897
4123
4125
4126
4127
4129
4152
4153
4156
4157
4158
4159
4162
4163
4165
4167
4168
4169
4172
4175
4176
4178
4183
4185
4186
4187
4189
4213
4215
4216
4217
4218
4231
4235
4236
4238
4251
4253
4256
4257
4258
4259
4261
4263
4265
4267
4268
4269
4271
4275
4276
4278
4295
4296
4298
4321
4325
4326
4327
4329
4351
4352
4356
4357
4358
4359
4361
4362
4365
4367
4368
4369
4381
4385
4386
4387
4389
4512
4516
4517
4518
4519
4521
4523
4526
4527
4528
4529
4532
4536
4537
4538
4561
4562
4563
4567
4568
4569
4571
4572
4573
4576
4578
4581
4582
4583
4586
4587
4589
4591
4592
4596
4598
4712
4715
4716
4718
4721
4723
4725
4726
4729
4751
4752
4753
4756
4758
4759
4761
4762
4763
4765
4768
4769
4781
4783
4785
4786
4789
4812
4815
4816
4817
4832
4835
4836
4851
4852
4853
4856
4857
4859
4861
4862
4863
4865
4867
4869
4871
4872
4875
4876
4879
4892
4895
4896
4897
4921
4923
4925
4926
4927
4951
4952
4953
4956
4957
4958
4961
4962
4963
4965
4967
4968
4981
4983
4985
4986
4987
5123
5124
5126
5127
5128
5129
5142
5143
5146
5147
5148
5149
5162
5163
5164
5167
5168
5169
5182
5183
5184
5186
5187
5189
5192
5194
5196
5198
5213
5214
5216
5218
5219
5231
5234
5236
5237
5238
5241
5243
5246
5247
5248
5249
5261
5263
5264
5267
5268
5269
5273
5274
5276
5278
5281
5283
5284
5286
5287
5289
5291
5294
5296
5298
5321
5324
5326
5327
5328
5329
5341
5342
5346
5347
5348
5349
5361
5362
5364
5367
5368
5369
5372
5374
5376
5378
5381
5382
5384
5386
5387
5389
5412
5416
5417
5418
5419
5421
5423
5426
5427
5428
5429
5432
5436
5437
5438
5461
5462
5463
5467
5468
5469
5471
5472
5473
5476
5478
5481
5482
5483
5486
5487
5489
5491
5492
5496
5498
5612
5614
5618
5619
5621
5623
5624
5627
5628
5629
5632
5634
5637
5638
5639
5641
5642
5643
5647
5648
5649
5672
5673
5674
5678
5681
5682
5683
5684
5687
5689
5691
5692
5693
5694
5698
5721
5723
5724
5726
5728
5729
5732
5734
5736
5738
5741
5742
5743
5746
5748
5749
5761
5762
5763
5764
5768
5769
5781
5782
5783
5784
5786
5789
5812
5814
5816
5819
5821
5823
5824
5826
5827
5829
5832
5834
5836
5837
5841
5842
5843
5846
5847
5849
5861
5862
5863
5864
5867
5869
5872
5873
5874
5876
5879
5891
5892
5894
5896
5897
5912
5914
5916
5918
5921
5923
5924
5926
5927
5928
5941
5942
5943
5946
5947
5948
5961
5962
5963
5964
5967
5968
5981
5982
5983
5984
5986
5987
6123
6124
6125
6127
6129
6142
6143
6145
6147
6148
6149
6152
6153
6154
6157
6158
6159
6183
6184
6185
6187
6189
6213
6214
6215
6218
6231
6234
6235
6238
6239
6241
6243
6245
6247
6248
6249
6251
6253
6254
6257
6258
6259
6274
6275
6278
6293
6294
6295
6298
6321
6324
6325
6327
6329
6341
6342
6345
6347
6348