@cyrilverloop/codingame-configuration 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/LICENSE +1 -1
- package/config/easy/MiniCPUInstructionDecoder/code/CGCode.cpp +19 -0
- package/config/easy/MiniCPUInstructionDecoder/code/CGCode.java +18 -0
- package/config/easy/MiniCPUInstructionDecoder/code/CGCode.js +8 -0
- package/config/easy/MiniCPUInstructionDecoder/code/CGCode.php +9 -0
- package/config/easy/MiniCPUInstructionDecoder/code/CGCode.ts +8 -0
- package/config/easy/MiniCPUInstructionDecoder/config.json +63 -0
- package/config/easy/MiniCPUInstructionDecoder/input/01 - Boot Sequence.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/02 - Multiply Core.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/03 - INC and DEC.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/04 - INC Overflow.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/05 - DEC Underflow.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/06 - ADD Overflow.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/07 - SUB Underflow.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/08 - MUL Overflow.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/09 - Mixed Operations.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/10 - Immediate Halt.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/input/11 - MOV Overwrite.txt +1 -0
- package/config/easy/MiniCPUInstructionDecoder/output/01 - Boot Sequence.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/02 - Multiply Core.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/03 - INC and DEC.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/04 - INC Overflow.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/05 - DEC Underflow.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/06 - ADD Overflow.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/07 - SUB Underflow.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/08 - MUL Overflow.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/09 - Mixed Operations.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/10 - Immediate Halt.txt +4 -0
- package/config/easy/MiniCPUInstructionDecoder/output/11 - MOV Overwrite.txt +4 -0
- package/config/easy/SimpleDiffTool/code/CGCode.cpp +29 -0
- package/config/easy/SimpleDiffTool/code/CGCode.java +30 -0
- package/config/easy/SimpleDiffTool/code/CGCode.js +14 -0
- package/config/easy/SimpleDiffTool/code/CGCode.php +17 -0
- package/config/easy/SimpleDiffTool/code/CGCode.ts +14 -0
- package/config/easy/SimpleDiffTool/config.json +78 -0
- package/config/easy/SimpleDiffTool/input/01 - Test - Add by content.txt +10 -0
- package/config/easy/SimpleDiffTool/input/02 - Test - Add by number.txt +10 -0
- package/config/easy/SimpleDiffTool/input/03 - Test - Delete by content.txt +8 -0
- package/config/easy/SimpleDiffTool/input/04 - Test - Delete by number.txt +8 -0
- package/config/easy/SimpleDiffTool/input/05 - Test - Change by content.txt +9 -0
- package/config/easy/SimpleDiffTool/input/06 - Test - Change by number.txt +9 -0
- package/config/easy/SimpleDiffTool/input/07 - Test - No diffs by content.txt +9 -0
- package/config/easy/SimpleDiffTool/input/08 - Test - No diffs by number.txt +9 -0
- package/config/easy/SimpleDiffTool/input/09 - Test - Moved lines by content.txt +9 -0
- package/config/easy/SimpleDiffTool/input/10 - Test - Moved lines by number.txt +9 -0
- package/config/easy/SimpleDiffTool/input/11 - Test - Multiple diffs by content.txt +24 -0
- package/config/easy/SimpleDiffTool/input/12 - Test - Multiple diffs by number.txt +24 -0
- package/config/easy/SimpleDiffTool/input/13 - Test - No lines by content.txt +3 -0
- package/config/easy/SimpleDiffTool/input/14 - Test - No lines by number.txt +3 -0
- package/config/easy/SimpleDiffTool/output/01 - Test - Add by content.txt +1 -0
- package/config/easy/SimpleDiffTool/output/02 - Test - Add by number.txt +2 -0
- package/config/easy/SimpleDiffTool/output/03 - Test - Delete by content.txt +1 -0
- package/config/easy/SimpleDiffTool/output/04 - Test - Delete by number.txt +2 -0
- package/config/easy/SimpleDiffTool/output/05 - Test - Change by content.txt +2 -0
- package/config/easy/SimpleDiffTool/output/06 - Test - Change by number.txt +1 -0
- package/config/easy/SimpleDiffTool/output/07 - Test - No diffs by content.txt +1 -0
- package/config/easy/SimpleDiffTool/output/08 - Test - No diffs by number.txt +1 -0
- package/config/easy/SimpleDiffTool/output/09 - Test - Moved lines by content.txt +3 -0
- package/config/easy/SimpleDiffTool/output/10 - Test - Moved lines by number.txt +3 -0
- package/config/easy/SimpleDiffTool/output/11 - Test - Multiple diffs by content.txt +9 -0
- package/config/easy/SimpleDiffTool/output/12 - Test - Multiple diffs by number.txt +5 -0
- package/config/easy/SimpleDiffTool/output/13 - Test - No lines by content.txt +1 -0
- package/config/easy/SimpleDiffTool/output/14 - Test - No lines by number.txt +1 -0
- package/config/easy/Snap/code/CGCode.cpp +28 -0
- package/config/easy/Snap/code/CGCode.java +24 -0
- package/config/easy/Snap/code/CGCode.js +14 -0
- package/config/easy/Snap/code/CGCode.php +17 -0
- package/config/easy/Snap/code/CGCode.ts +14 -0
- package/config/easy/Snap/config.json +93 -0
- package/config/easy/Snap/input/01 - Player 1 Win.txt +10 -0
- package/config/easy/Snap/input/02 - Player 2 Win.txt +12 -0
- package/config/easy/Snap/input/03 - Snapless.txt +22 -0
- package/config/easy/Snap/input/04 - Clutch Save.txt +30 -0
- package/config/easy/Snap/input/05 - Almost Clutch Save.txt +54 -0
- package/config/easy/Snap/input/06 - Quick Game.txt +4 -0
- package/config/easy/Snap/input/07 - Very Quick Game.txt +3 -0
- package/config/easy/Snap/input/08 - Lucky Shuffle.txt +22 -0
- package/config/easy/Snap/input/09 - Unfair Shuffle 1.txt +24 -0
- package/config/easy/Snap/input/10 - Unfair Shuffle 2.txt +25 -0
- package/config/easy/Snap/input/11 - Unfair Shuffle 3.txt +54 -0
- package/config/easy/Snap/input/12 - Standard Deck 1.txt +54 -0
- package/config/easy/Snap/input/13 - Standard Deck 2.txt +54 -0
- package/config/easy/Snap/input/14 - Standard Deck 3.txt +54 -0
- package/config/easy/Snap/input/15 - Standard Deck 4.txt +54 -0
- package/config/easy/Snap/input/16 - Standard Deck 5.txt +54 -0
- package/config/easy/Snap/input/17 - Standard Deck 6.txt +54 -0
- package/config/easy/Snap/output/01 - Player 1 Win.txt +2 -0
- package/config/easy/Snap/output/02 - Player 2 Win.txt +2 -0
- package/config/easy/Snap/output/03 - Snapless.txt +2 -0
- package/config/easy/Snap/output/04 - Clutch Save.txt +2 -0
- package/config/easy/Snap/output/05 - Almost Clutch Save.txt +2 -0
- package/config/easy/Snap/output/06 - Quick Game.txt +2 -0
- package/config/easy/Snap/output/07 - Very Quick Game.txt +2 -0
- package/config/easy/Snap/output/08 - Lucky Shuffle.txt +2 -0
- package/config/easy/Snap/output/09 - Unfair Shuffle 1.txt +2 -0
- package/config/easy/Snap/output/10 - Unfair Shuffle 2.txt +2 -0
- package/config/easy/Snap/output/11 - Unfair Shuffle 3.txt +2 -0
- package/config/easy/Snap/output/12 - Standard Deck 1.txt +2 -0
- package/config/easy/Snap/output/13 - Standard Deck 2.txt +2 -0
- package/config/easy/Snap/output/14 - Standard Deck 3.txt +2 -0
- package/config/easy/Snap/output/15 - Standard Deck 4.txt +2 -0
- package/config/easy/Snap/output/16 - Standard Deck 5.txt +2 -0
- package/config/easy/Snap/output/17 - Standard Deck 6.txt +2 -0
- package/config/easy/WhatADessert/code/CGCode.cpp +20 -0
- package/config/easy/WhatADessert/code/CGCode.java +19 -0
- package/config/easy/WhatADessert/code/CGCode.js +10 -0
- package/config/easy/WhatADessert/code/CGCode.php +7 -0
- package/config/easy/WhatADessert/code/CGCode.ts +10 -0
- package/config/easy/WhatADessert/config.json +33 -0
- package/config/easy/WhatADessert/input/01 - test 1.txt +1 -0
- package/config/easy/WhatADessert/input/02 - test 2.txt +1 -0
- package/config/easy/WhatADessert/input/03 - test 3.txt +1 -0
- package/config/easy/WhatADessert/input/04 - test 4.txt +1 -0
- package/config/easy/WhatADessert/input/05 - test 5.txt +1 -0
- package/config/easy/WhatADessert/output/01 - test 1.txt +1 -0
- package/config/easy/WhatADessert/output/02 - test 2.txt +1 -0
- package/config/easy/WhatADessert/output/03 - test 3.txt +1 -0
- package/config/easy/WhatADessert/output/04 - test 4.txt +1 -0
- package/config/easy/WhatADessert/output/05 - test 5.txt +1 -0
- package/config/{medium → hard}/GuessingDigits/config.json +1 -1
- package/config/hard/MountainRange/code/CGCode.cpp +22 -0
- package/config/hard/MountainRange/code/CGCode.java +23 -0
- package/config/hard/MountainRange/code/CGCode.js +11 -0
- package/config/hard/MountainRange/code/CGCode.php +11 -0
- package/config/hard/MountainRange/code/CGCode.ts +11 -0
- package/config/hard/MountainRange/config.json +123 -0
- package/config/hard/MountainRange/input/01 - Two summits.txt +7 -0
- package/config/hard/MountainRange/input/02 - Close summits.txt +7 -0
- package/config/hard/MountainRange/input/03 - Row of 11 peaks.txt +3 -0
- package/config/hard/MountainRange/input/04 - Two ridges.txt +13 -0
- package/config/hard/MountainRange/input/05 - Flat summits.txt +8 -0
- package/config/hard/MountainRange/input/06 - Aligned mountains.txt +16 -0
- package/config/hard/MountainRange/input/07 - Aligned valleys.txt +19 -0
- package/config/hard/MountainRange/input/08 - Intersecting ridges.txt +9 -0
- package/config/hard/MountainRange/input/09 - Nested mountains.txt +11 -0
- package/config/hard/MountainRange/input/10 - 8 + 8 + 6 + 6.txt +9 -0
- package/config/hard/MountainRange/input/11 - Partially hidden summit.txt +6 -0
- package/config/hard/MountainRange/input/12 - Test case of User123.txt +11 -0
- package/config/hard/MountainRange/input/13 - Two in front of three.txt +8 -0
- package/config/hard/MountainRange/input/14 - Two in front of one big mountain.txt +11 -0
- package/config/hard/MountainRange/input/15 - Four in front of one flat summit.txt +8 -0
- package/config/hard/MountainRange/input/16 - 8 pointed summits + 1 flat.txt +12 -0
- package/config/hard/MountainRange/input/17 - 2 + 3 + 2 + 3 + 2 + 2 + 2 + 2.txt +25 -0
- package/config/hard/MountainRange/input/18 - One in front of three.txt +12 -0
- package/config/hard/MountainRange/input/19 - Peak, flat summit, hidden slope.txt +9 -0
- package/config/hard/MountainRange/input/20 - Three summits, one hidden slope.txt +14 -0
- package/config/hard/MountainRange/input/21 - Two pairs.txt +8 -0
- package/config/hard/MountainRange/input/22 - 4 + 3 + 4 + 3 + 1 + 1.txt +14 -0
- package/config/hard/MountainRange/input/23 - 4 + 3 + 2 + 3 + 1 + 3 + 1 + 1.txt +14 -0
- package/config/hard/MountainRange/output/03 - Row of 11 peaks.txt +1 -0
- package/config/hard/MountainRange/output/04 - Two ridges.txt +1 -0
- package/config/hard/MountainRange/output/07 - Aligned valleys.txt +1 -0
- package/config/hard/MountainRange/output/08 - Intersecting ridges.txt +1 -0
- package/config/hard/MountainRange/output/09 - Nested mountains.txt +1 -0
- package/config/hard/MountainRange/output/10 - 8 + 8 + 6 + 6.txt +1 -0
- package/config/hard/MountainRange/output/11 - Partially hidden summit.txt +1 -0
- package/config/hard/MountainRange/output/12 - Test case of User123.txt +1 -0
- package/config/hard/MountainRange/output/13 - Two in front of three.txt +1 -0
- package/config/hard/MountainRange/output/14 - Two in front of one big mountain.txt +1 -0
- package/config/hard/MountainRange/output/15 - Four in front of one flat summit.txt +1 -0
- package/config/hard/MountainRange/output/16 - 8 pointed summits + 1 flat.txt +1 -0
- package/config/hard/MountainRange/output/17 - 2 + 3 + 2 + 3 + 2 + 2 + 2 + 2.txt +1 -0
- package/config/hard/MountainRange/output/19 - Peak, flat summit, hidden slope.txt +1 -0
- package/config/hard/MountainRange/output/20 - Three summits, one hidden slope.txt +1 -0
- package/config/hard/MountainRange/output/21 - Two pairs.txt +1 -0
- package/config/hard/MountainRange/output/22 - 4 + 3 + 4 + 3 + 1 + 1.txt +1 -0
- package/config/hard/MountainRange/output/23 - 4 + 3 + 2 + 3 + 1 + 3 + 1 + 1.txt +1 -0
- package/config/{medium → hard}/ParseSQLQueries/config.json +1 -1
- package/config/{expert → hard}/RecurringDecimals/config.json +1 -1
- package/config/{medium → hard}/Surakarta/config.json +1 -1
- package/config/hard/Surakarta/output/02 - multiple ways.txt +1 -0
- package/config/hard/Surakarta/output/04 - pass on yourself.txt +1 -0
- package/config/hard/Surakarta/output/05 - angles are not OK.txt +1 -0
- package/config/hard/Surakarta/output/07 - it works.txt +1 -0
- package/config/hard/Surakarta/output/10 - real test.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/code/CGCode.cpp +21 -0
- package/config/medium/DistinctCircularLinkedLists/code/CGCode.java +19 -0
- package/config/medium/DistinctCircularLinkedLists/code/CGCode.js +9 -0
- package/config/medium/DistinctCircularLinkedLists/code/CGCode.php +11 -0
- package/config/medium/DistinctCircularLinkedLists/code/CGCode.ts +9 -0
- package/config/medium/DistinctCircularLinkedLists/config.json +103 -0
- package/config/medium/DistinctCircularLinkedLists/input/01 - Example.txt +4 -0
- package/config/medium/DistinctCircularLinkedLists/input/02 - Random Nodes.txt +5 -0
- package/config/medium/DistinctCircularLinkedLists/input/03 - More Nodes.txt +8 -0
- package/config/medium/DistinctCircularLinkedLists/input/04 - Just One.txt +2 -0
- package/config/medium/DistinctCircularLinkedLists/input/05 - Even More Nodes.txt +10 -0
- package/config/medium/DistinctCircularLinkedLists/input/06 - Repeated Nodes.txt +6 -0
- package/config/medium/DistinctCircularLinkedLists/input/07 - Multiple Repeating Nodes.txt +9 -0
- package/config/medium/DistinctCircularLinkedLists/input/08 - Just One Again.txt +10 -0
- package/config/medium/DistinctCircularLinkedLists/input/09 - Good Pairing.txt +9 -0
- package/config/medium/DistinctCircularLinkedLists/input/10 - More Nodes 2.txt +13 -0
- package/config/medium/DistinctCircularLinkedLists/input/11 - Similar CLLs.txt +17 -0
- package/config/medium/DistinctCircularLinkedLists/input/12 - Even More Nodes 2.txt +31 -0
- package/config/medium/DistinctCircularLinkedLists/input/13 - Large CLLs.txt +61 -0
- package/config/medium/DistinctCircularLinkedLists/input/14 - Many Different Nodes.txt +101 -0
- package/config/medium/DistinctCircularLinkedLists/input/15 - Node Spam.txt +497 -0
- package/config/medium/DistinctCircularLinkedLists/input/16 - More Node Spam.txt +1000 -0
- package/config/medium/DistinctCircularLinkedLists/input/17 - Very Similar CLLs.txt +1985 -0
- package/config/medium/DistinctCircularLinkedLists/input/18 - Too Similar CLLs.txt +3361 -0
- package/config/medium/DistinctCircularLinkedLists/input/19 - Absolute Limit.txt +3997 -0
- package/config/medium/DistinctCircularLinkedLists/output/01 - Example.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/02 - Random Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/03 - More Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/04 - Just One.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/05 - Even More Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/06 - Repeated Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/07 - Multiple Repeating Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/08 - Just One Again.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/09 - Good Pairing.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/10 - More Nodes 2.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/11 - Similar CLLs.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/12 - Even More Nodes 2.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/13 - Large CLLs.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/14 - Many Different Nodes.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/15 - Node Spam.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/16 - More Node Spam.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/17 - Very Similar CLLs.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/18 - Too Similar CLLs.txt +1 -0
- package/config/medium/DistinctCircularLinkedLists/output/19 - Absolute Limit.txt +1 -0
- package/config/{easy → medium}/NoMorePythonsPlease/config.json +1 -1
- package/config/medium/PolygonEquilibrium/code/CGCode.cpp +23 -0
- package/config/medium/PolygonEquilibrium/code/CGCode.java +21 -0
- package/config/medium/PolygonEquilibrium/code/CGCode.js +12 -0
- package/config/medium/PolygonEquilibrium/code/CGCode.php +12 -0
- package/config/medium/PolygonEquilibrium/code/CGCode.ts +12 -0
- package/config/medium/PolygonEquilibrium/config.json +73 -0
- package/config/medium/PolygonEquilibrium/input/01 - Simple triangle.txt +4 -0
- package/config/medium/PolygonEquilibrium/input/02 - Tipping triangle.txt +4 -0
- package/config/medium/PolygonEquilibrium/input/03 - Trapezoid.txt +5 -0
- package/config/medium/PolygonEquilibrium/input/04 - Regular Octogon.txt +9 -0
- package/config/medium/PolygonEquilibrium/input/05 - An L-shape.txt +7 -0
- package/config/medium/PolygonEquilibrium/input/06 - A T-shape.txt +9 -0
- package/config/medium/PolygonEquilibrium/input/07 - test 7.txt +12 -0
- package/config/medium/PolygonEquilibrium/input/08 - test 8.txt +18 -0
- package/config/medium/PolygonEquilibrium/input/09 - Centroid outside of polygon.txt +19 -0
- package/config/medium/PolygonEquilibrium/input/10 - Multiple vertices supporting segment.txt +7 -0
- package/config/medium/PolygonEquilibrium/input/11 - Weird shape.txt +12 -0
- package/config/medium/PolygonEquilibrium/input/12 - Barely balanced.txt +5 -0
- package/config/medium/PolygonEquilibrium/input/13 - CG.txt +43 -0
- package/config/medium/PolygonEquilibrium/output/01 - Simple triangle.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/02 - Tipping triangle.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/03 - Trapezoid.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/04 - Regular Octogon.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/05 - An L-shape.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/06 - A T-shape.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/07 - test 7.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/08 - test 8.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/09 - Centroid outside of polygon.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/10 - Multiple vertices supporting segment.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/11 - Weird shape.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/12 - Barely balanced.txt +2 -0
- package/config/medium/PolygonEquilibrium/output/13 - CG.txt +2 -0
- package/config/medium/SantasGarland/code/CGCode.cpp +27 -0
- package/config/medium/SantasGarland/code/CGCode.java +24 -0
- package/config/medium/SantasGarland/code/CGCode.js +17 -0
- package/config/medium/SantasGarland/code/CGCode.php +12 -0
- package/config/medium/SantasGarland/code/CGCode.ts +17 -0
- package/config/medium/SantasGarland/config.json +68 -0
- package/config/medium/SantasGarland/input/01 - Simple Path.txt +4 -0
- package/config/medium/SantasGarland/input/02 - Disconnected.txt +4 -0
- package/config/medium/SantasGarland/input/03 - Triangle with Alternative Path.txt +6 -0
- package/config/medium/SantasGarland/input/04 - Hexagon Bad Diagonal.txt +9 -0
- package/config/medium/SantasGarland/input/05 - Mid-failure with Bypass.txt +11 -0
- package/config/medium/SantasGarland/input/06 - Hub Blocked (different path lengths).txt +11 -0
- package/config/medium/SantasGarland/input/07 - Shortcut vs Two Detours.txt +12 -0
- package/config/medium/SantasGarland/input/08 - Grid Traversal.txt +14 -0
- package/config/medium/SantasGarland/input/09 - Fuses Blow at Final Step.txt +6 -0
- package/config/medium/SantasGarland/input/10 - Circle Complete Graph.txt +82 -0
- package/config/medium/SantasGarland/input/11 - Hamiltonian 10x10 Grid.txt +102 -0
- package/config/medium/SantasGarland/input/12 - Triple Path Challenge.txt +102 -0
- package/config/medium/SantasGarland/output/01 - Simple Path.txt +1 -0
- package/config/medium/SantasGarland/output/02 - Disconnected.txt +1 -0
- package/config/medium/SantasGarland/output/03 - Triangle with Alternative Path.txt +1 -0
- package/config/medium/SantasGarland/output/04 - Hexagon Bad Diagonal.txt +1 -0
- package/config/medium/SantasGarland/output/05 - Mid-failure with Bypass.txt +1 -0
- package/config/medium/SantasGarland/output/06 - Hub Blocked (different path lengths).txt +1 -0
- package/config/medium/SantasGarland/output/07 - Shortcut vs Two Detours.txt +1 -0
- package/config/medium/SantasGarland/output/08 - Grid Traversal.txt +1 -0
- package/config/medium/SantasGarland/output/09 - Fuses Blow at Final Step.txt +1 -0
- package/config/medium/SantasGarland/output/10 - Circle Complete Graph.txt +1 -0
- package/config/medium/SantasGarland/output/11 - Hamiltonian 10x10 Grid.txt +1 -0
- package/config/medium/SantasGarland/output/12 - Triple Path Challenge.txt +1 -0
- package/config/{easy → medium}/TheAlienBusinessOfCows/config.json +1 -1
- package/config/medium/TheQueensTrekWythoffsGame/code/CGCode.cpp +18 -0
- package/config/medium/TheQueensTrekWythoffsGame/code/CGCode.java +17 -0
- package/config/medium/TheQueensTrekWythoffsGame/code/CGCode.js +8 -0
- package/config/medium/TheQueensTrekWythoffsGame/code/CGCode.php +7 -0
- package/config/medium/TheQueensTrekWythoffsGame/code/CGCode.ts +8 -0
- package/config/medium/TheQueensTrekWythoffsGame/config.json +63 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/01 - empty piles.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/02 - 1 move - pile 1 empty.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/03 - 1 move - pile 2 empty.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/04 - 1 move - 2 piles.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/05 - Simple one.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/06 - First win - 1.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/07 - Second win - 1.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/08 - First win - 2.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/09 - Second win - 2.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/10 - First win - 3.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/input/11 - Second win - 3.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/01 - empty piles.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/02 - 1 move - pile 1 empty.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/03 - 1 move - pile 2 empty.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/04 - 1 move - 2 piles.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/05 - Simple one.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/06 - First win - 1.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/07 - Second win - 1.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/08 - First win - 2.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/09 - Second win - 2.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/10 - First win - 3.txt +1 -0
- package/config/medium/TheQueensTrekWythoffsGame/output/11 - Second win - 3.txt +1 -0
- package/package.json +1 -1
- /package/config/{medium → hard}/GuessingDigits/code/CGCode.js +0 -0
- /package/config/{medium → hard}/GuessingDigits/code/CGCode.php +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/01 - test 1.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/02 - test 2.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/03 - test 3.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/04 - test 4.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/05 - test 5.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/06 - test 6.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/07 - test 7.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/input/08 - test 8.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/01 - test 1.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/02 - test 2.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/03 - test 3.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/04 - test 4.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/05 - test 5.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/06 - test 6.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/07 - test 7.txt +0 -0
- /package/config/{medium → hard}/GuessingDigits/output/08 - test 8.txt +0 -0
- /package/config/{medium/Surakarta/output/05 - angles are not OK.txt → hard/MountainRange/output/01 - Two summits.txt} +0 -0
- /package/config/{medium/Surakarta/output/02 - multiple ways.txt → hard/MountainRange/output/02 - Close summits.txt} +0 -0
- /package/config/{medium/Surakarta/output/07 - it works.txt → hard/MountainRange/output/05 - Flat summits.txt} +0 -0
- /package/config/{medium/Surakarta/output/10 - real test.txt → hard/MountainRange/output/06 - Aligned mountains.txt} +0 -0
- /package/config/{medium/Surakarta/output/04 - pass on yourself.txt → hard/MountainRange/output/18 - One in front of three.txt} +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/code/CGCode.js +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/code/CGCode.php +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/input/01 - select all.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/input/02 - Select from where.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/input/03 - Order by ascending.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/input/04 - Order by descending.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/input/05 - Slightly more advanced.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/output/01 - select all.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/output/02 - Select from where.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/output/03 - Order by ascending.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/output/04 - Order by descending.txt +0 -0
- /package/config/{medium → hard}/ParseSQLQueries/output/05 - Slightly more advanced.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/code/CGCode.cpp +0 -0
- /package/config/{expert → hard}/RecurringDecimals/code/CGCode.java +0 -0
- /package/config/{expert → hard}/RecurringDecimals/code/CGCode.js +0 -0
- /package/config/{expert → hard}/RecurringDecimals/code/CGCode.php +0 -0
- /package/config/{expert → hard}/RecurringDecimals/code/CGCode.ts +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/01 - Small Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/02 - Medium Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/03 - Large Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/04 - Small Non-Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/05 - Medium Non-Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/06 - Large Non Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/07 - Small Mixed.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/08 - Large Mixed.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/input/09 - Test 9.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/01 - Small Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/02 - Medium Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/03 - Large Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/04 - Small Non-Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/05 - Medium Non-Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/06 - Large Non Terminating.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/07 - Small Mixed.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/08 - Large Mixed.txt +0 -0
- /package/config/{expert → hard}/RecurringDecimals/output/09 - Test 9.txt +0 -0
- /package/config/{medium → hard}/Surakarta/code/CGCode.js +0 -0
- /package/config/{medium → hard}/Surakarta/code/CGCode.php +0 -0
- /package/config/{medium → hard}/Surakarta/input/01 - around the world.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/02 - multiple ways.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/03 - impossible.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/04 - pass on yourself.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/05 - angles are not OK.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/06 - we have a problem.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/07 - it works.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/08 - number test.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/09 - crossway.txt +0 -0
- /package/config/{medium → hard}/Surakarta/input/10 - real test.txt +0 -0
- /package/config/{medium → hard}/Surakarta/output/01 - around the world.txt +0 -0
- /package/config/{medium → hard}/Surakarta/output/03 - impossible.txt +0 -0
- /package/config/{medium → hard}/Surakarta/output/06 - we have a problem.txt +0 -0
- /package/config/{medium → hard}/Surakarta/output/08 - number test.txt +0 -0
- /package/config/{medium → hard}/Surakarta/output/09 - crossway.txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/code/CGCode.js +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/code/CGCode.php +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/input/01 - easy (one snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/input/02 - medium 1 (3 snakes, one pattern).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/input/03 - medium 2 (more than 1 large snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/input/04 - hard (one VERY large snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/input/05 - snake madness (for geeks).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/output/01 - easy (one snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/output/02 - medium 1 (3 snakes, one pattern).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/output/03 - medium 2 (more than 1 large snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/output/04 - hard (one VERY large snake).txt +0 -0
- /package/config/{easy → medium}/NoMorePythonsPlease/output/05 - snake madness (for geeks).txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/code/CGCode.js +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/code/CGCode.php +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/input/01 - United Steak of America.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/input/02 - Free Tacow !.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/input/03 - Is that a Mowse.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/input/04 - Those missions are stupid.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/input/05 - Union of Steak Amateurs.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/output/01 - United Steak of America.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/output/02 - Free Tacow !.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/output/03 - Is that a Mowse.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/output/04 - Those missions are stupid.txt +0 -0
- /package/config/{easy → medium}/TheAlienBusinessOfCows/output/05 - Union of Steak Amateurs.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
720
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
40320
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
420
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
54
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9240
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3941598
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
454417151
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
840893432
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
118101570
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
234221821
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
718251265
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
448316420
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
328929159
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
160977148
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int n;
|
|
11
|
+
cin >> n; cin.ignore();
|
|
12
|
+
for (int i = 0; i < n; i++) {
|
|
13
|
+
int x;
|
|
14
|
+
int y;
|
|
15
|
+
cin >> x >> y; cin.ignore();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
19
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
20
|
+
|
|
21
|
+
cout << "number of supporting segments" << endl;
|
|
22
|
+
cout << "number of static equilibriums" << endl;
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import java.util.*;
|
|
2
|
+
import java.io.*;
|
|
3
|
+
import java.math.*;
|
|
4
|
+
|
|
5
|
+
class Solution {
|
|
6
|
+
|
|
7
|
+
public static void main(String args[]) {
|
|
8
|
+
Scanner in = new Scanner(System.in);
|
|
9
|
+
int n = in.nextInt();
|
|
10
|
+
for (int i = 0; i < n; i++) {
|
|
11
|
+
int x = in.nextInt();
|
|
12
|
+
int y = in.nextInt();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Write an answer using System.out.println()
|
|
16
|
+
// To debug: System.err.println("Debug messages...");
|
|
17
|
+
|
|
18
|
+
System.out.println("number of supporting segments");
|
|
19
|
+
System.out.println("number of static equilibriums");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const n = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs = readline().split(' ');
|
|
4
|
+
const x = parseInt(inputs[0]);
|
|
5
|
+
const y = parseInt(inputs[1]);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Write an answer using console.log()
|
|
9
|
+
// To debug: console.error('Debug messages...');
|
|
10
|
+
|
|
11
|
+
console.log('number of supporting segments');
|
|
12
|
+
console.log('number of static equilibriums');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d", $n);
|
|
3
|
+
for ($i = 0; $i < $n; $i++)
|
|
4
|
+
{
|
|
5
|
+
fscanf(STDIN, "%d %d", $x, $y);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
9
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
10
|
+
|
|
11
|
+
echo("number of supporting segments\n");
|
|
12
|
+
echo("number of static equilibriums\n");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const n: number = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs: string[] = readline().split(' ');
|
|
4
|
+
const x: number = parseInt(inputs[0]);
|
|
5
|
+
const y: number = parseInt(inputs[1]);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Write an answer using console.log()
|
|
9
|
+
// To debug: console.error('Debug messages...');
|
|
10
|
+
|
|
11
|
+
console.log('number of supporting segments');
|
|
12
|
+
console.log('number of static equilibriums');
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "medium/PolygonEquilibrium",
|
|
3
|
+
"name": "Polygon equilibrium",
|
|
4
|
+
"alphanumName": "PolygonEquilibrium",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/polygon-equilibrium",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Simple triangle",
|
|
9
|
+
"alphanumName": "SimpleTriangle",
|
|
10
|
+
"file": "01 - Simple triangle.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Tipping triangle",
|
|
14
|
+
"alphanumName": "TippingTriangle",
|
|
15
|
+
"file": "02 - Tipping triangle.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Trapezoid",
|
|
19
|
+
"alphanumName": "Trapezoid",
|
|
20
|
+
"file": "03 - Trapezoid.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Regular Octogon",
|
|
24
|
+
"alphanumName": "RegularOctogon",
|
|
25
|
+
"file": "04 - Regular Octogon.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "An L-shape",
|
|
29
|
+
"alphanumName": "AnLShape",
|
|
30
|
+
"file": "05 - An L-shape.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "A T-shape",
|
|
34
|
+
"alphanumName": "ATShape",
|
|
35
|
+
"file": "06 - A T-shape.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Test 7",
|
|
39
|
+
"alphanumName": "test7",
|
|
40
|
+
"file": "07 - test 7.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Test 8",
|
|
44
|
+
"alphanumName": "test8",
|
|
45
|
+
"file": "08 - test 8.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Centroid outside of polygon",
|
|
49
|
+
"alphanumName": "CentroidOutsideOfPolygon",
|
|
50
|
+
"file": "09 - Centroid outside of polygon.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Multiple vertices supporting segment",
|
|
54
|
+
"alphanumName": "MultipleVerticesSupportingSegment",
|
|
55
|
+
"file": "10 - Multiple vertices supporting segment.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "Weird shape",
|
|
59
|
+
"alphanumName": "WeirdShape",
|
|
60
|
+
"file": "11 - Weird shape.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Barely balanced",
|
|
64
|
+
"alphanumName": "BarelyBalanced",
|
|
65
|
+
"file": "12 - Barely balanced.txt"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "CG",
|
|
69
|
+
"alphanumName": "CG",
|
|
70
|
+
"file": "13 - CG.txt"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
42
|
|
2
|
+
9 11
|
|
3
|
+
11 11
|
|
4
|
+
11 13
|
|
5
|
+
9 15
|
|
6
|
+
4 15
|
|
7
|
+
2 13
|
|
8
|
+
2 4
|
|
9
|
+
4 2
|
|
10
|
+
9 2
|
|
11
|
+
11 4
|
|
12
|
+
12 4
|
|
13
|
+
14 2
|
|
14
|
+
19 2
|
|
15
|
+
21 4
|
|
16
|
+
21 8
|
|
17
|
+
18 8
|
|
18
|
+
18 6
|
|
19
|
+
19 6
|
|
20
|
+
19 5
|
|
21
|
+
18 4
|
|
22
|
+
15 4
|
|
23
|
+
14 5
|
|
24
|
+
14 12
|
|
25
|
+
15 13
|
|
26
|
+
18 13
|
|
27
|
+
19 12
|
|
28
|
+
19 11
|
|
29
|
+
21 11
|
|
30
|
+
21 13
|
|
31
|
+
19 15
|
|
32
|
+
14 15
|
|
33
|
+
12 13
|
|
34
|
+
12 6
|
|
35
|
+
9 6
|
|
36
|
+
9 5
|
|
37
|
+
8 4
|
|
38
|
+
5 4
|
|
39
|
+
4 5
|
|
40
|
+
4 12
|
|
41
|
+
5 13
|
|
42
|
+
8 13
|
|
43
|
+
9 12
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int n;
|
|
11
|
+
int m;
|
|
12
|
+
cin >> n >> m; cin.ignore();
|
|
13
|
+
int s;
|
|
14
|
+
int e;
|
|
15
|
+
cin >> s >> e; cin.ignore();
|
|
16
|
+
for (int i = 0; i < m; i++) {
|
|
17
|
+
int a;
|
|
18
|
+
int b;
|
|
19
|
+
int t;
|
|
20
|
+
cin >> a >> b >> t; cin.ignore();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
24
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
25
|
+
|
|
26
|
+
cout << "42" << endl;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import java.util.*;
|
|
2
|
+
import java.io.*;
|
|
3
|
+
import java.math.*;
|
|
4
|
+
|
|
5
|
+
class Solution {
|
|
6
|
+
|
|
7
|
+
public static void main(String args[]) {
|
|
8
|
+
Scanner in = new Scanner(System.in);
|
|
9
|
+
int N = in.nextInt();
|
|
10
|
+
int M = in.nextInt();
|
|
11
|
+
int S = in.nextInt();
|
|
12
|
+
int E = in.nextInt();
|
|
13
|
+
for (int i = 0; i < M; i++) {
|
|
14
|
+
int A = in.nextInt();
|
|
15
|
+
int B = in.nextInt();
|
|
16
|
+
int T = in.nextInt();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Write an answer using System.out.println()
|
|
20
|
+
// To debug: System.err.println("Debug messages...");
|
|
21
|
+
|
|
22
|
+
System.out.println("42");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var inputs = readline().split(' ');
|
|
2
|
+
const N = parseInt(inputs[0]);
|
|
3
|
+
const M = parseInt(inputs[1]);
|
|
4
|
+
var inputs = readline().split(' ');
|
|
5
|
+
const S = parseInt(inputs[0]);
|
|
6
|
+
const E = parseInt(inputs[1]);
|
|
7
|
+
for (let i = 0; i < M; i++) {
|
|
8
|
+
var inputs = readline().split(' ');
|
|
9
|
+
const A = parseInt(inputs[0]);
|
|
10
|
+
const B = parseInt(inputs[1]);
|
|
11
|
+
const T = parseInt(inputs[2]);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Write an answer using console.log()
|
|
15
|
+
// To debug: console.error('Debug messages...');
|
|
16
|
+
|
|
17
|
+
console.log('42');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d %d", $N, $M);
|
|
3
|
+
fscanf(STDIN, "%d %d", $S, $E);
|
|
4
|
+
for ($i = 0; $i < $M; $i++)
|
|
5
|
+
{
|
|
6
|
+
fscanf(STDIN, "%d %d %d", $A, $B, $T);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
10
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
11
|
+
|
|
12
|
+
echo("42\n");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var inputs: string[] = readline().split(' ');
|
|
2
|
+
const N: number = parseInt(inputs[0]);
|
|
3
|
+
const M: number = parseInt(inputs[1]);
|
|
4
|
+
var inputs: string[] = readline().split(' ');
|
|
5
|
+
const S: number = parseInt(inputs[0]);
|
|
6
|
+
const E: number = parseInt(inputs[1]);
|
|
7
|
+
for (let i = 0; i < M; i++) {
|
|
8
|
+
var inputs: string[] = readline().split(' ');
|
|
9
|
+
const A: number = parseInt(inputs[0]);
|
|
10
|
+
const B: number = parseInt(inputs[1]);
|
|
11
|
+
const T: number = parseInt(inputs[2]);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Write an answer using console.log()
|
|
15
|
+
// To debug: console.error('Debug messages...');
|
|
16
|
+
|
|
17
|
+
console.log('42');
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "medium/SantasGarland",
|
|
3
|
+
"name": "Santa’s Garland",
|
|
4
|
+
"alphanumName": "SantasGarland",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/santas-garland",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Test 1: Simple Path",
|
|
9
|
+
"alphanumName": "Test1SimplePath",
|
|
10
|
+
"file": "01 - Simple Path.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Test 2: Disconnected",
|
|
14
|
+
"alphanumName": "Test2Disconnected",
|
|
15
|
+
"file": "02 - Disconnected.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Test 3: Triangle with Alternative Path",
|
|
19
|
+
"alphanumName": "Test3TriangleWithAlternativePath",
|
|
20
|
+
"file": "03 - Triangle with Alternative Path.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Test 4: Hexagon Bad Diagonal",
|
|
24
|
+
"alphanumName": "Test4HexagonBadDiagonal",
|
|
25
|
+
"file": "04 - Hexagon Bad Diagonal.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Test 5: Mid-failure with Bypass",
|
|
29
|
+
"alphanumName": "Test5MidFailureWithBypass",
|
|
30
|
+
"file": "05 - Mid-failure with Bypass.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Test 6: Hub Blocked (different path lengths)",
|
|
34
|
+
"alphanumName": "Test6HubBlockedDifferentPathLengths",
|
|
35
|
+
"file": "06 - Hub Blocked (different path lengths).txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Test 7: Shortcut vs Two Detours",
|
|
39
|
+
"alphanumName": "Test7ShortcutVsTwoDetours",
|
|
40
|
+
"file": "07 - Shortcut vs Two Detours.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Test 8: Grid Traversal",
|
|
44
|
+
"alphanumName": "Test8GridTraversal",
|
|
45
|
+
"file": "08 - Grid Traversal.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Test 9: Fuses Blow at Final Step",
|
|
49
|
+
"alphanumName": "Test9FusesBlowAtFinalStep",
|
|
50
|
+
"file": "09 - Fuses Blow at Final Step.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Test 10: Circle Complete Graph",
|
|
54
|
+
"alphanumName": "Test10CircleCompleteGraph",
|
|
55
|
+
"file": "10 - Circle Complete Graph.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "Test 11: Hamiltonian 10x10 Grid",
|
|
59
|
+
"alphanumName": "Test11Hamiltonian10x10Grid",
|
|
60
|
+
"file": "11 - Hamiltonian 10x10 Grid.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Test 12: Triple Path Challenge",
|
|
64
|
+
"alphanumName": "Test12TriplePathChallenge",
|
|
65
|
+
"file": "12 - Triple Path Challenge.txt"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|