@cyrilverloop/codingame-configuration 1.21.0 → 1.23.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 +24 -0
- package/LICENSE +1 -1
- package/config/easy/LinesIntersections/code/CGCode.cpp +24 -0
- package/config/easy/LinesIntersections/code/CGCode.java +22 -0
- package/config/easy/LinesIntersections/code/CGCode.js +13 -0
- package/config/easy/LinesIntersections/code/CGCode.php +11 -0
- package/config/easy/LinesIntersections/code/CGCode.ts +13 -0
- package/config/easy/LinesIntersections/config.json +68 -0
- package/config/easy/LinesIntersections/input/01 - Triangle.txt +4 -0
- package/config/easy/LinesIntersections/input/02 - Two intersects.txt +3 -0
- package/config/easy/LinesIntersections/input/03 - Two parallel.txt +3 -0
- package/config/easy/LinesIntersections/input/04 - Square.txt +5 -0
- package/config/easy/LinesIntersections/input/05 - Square crossed.txt +7 -0
- package/config/easy/LinesIntersections/input/06 - One line.txt +2 -0
- package/config/easy/LinesIntersections/input/08 - 10 lines.txt +11 -0
- package/config/easy/LinesIntersections/input/09 - 10 lines with maximum intersections.txt +11 -0
- package/config/easy/LinesIntersections/input/10 - 10 coincident lines.txt +11 -0
- package/config/easy/LinesIntersections/input/11 - All cases.txt +11 -0
- package/config/easy/LinesIntersections/input/12 - Star.txt +9 -0
- package/config/easy/LinesIntersections/output/01 - Triangle.txt +4 -0
- package/config/easy/LinesIntersections/output/02 - Two intersects.txt +2 -0
- package/config/easy/LinesIntersections/output/04 - Square.txt +5 -0
- package/config/easy/LinesIntersections/output/05 - Square crossed.txt +6 -0
- package/config/easy/LinesIntersections/output/07 - Zero.txt +1 -0
- package/config/easy/LinesIntersections/output/08 - 10 lines.txt +39 -0
- package/config/easy/LinesIntersections/output/09 - 10 lines with maximum intersections.txt +46 -0
- package/config/easy/LinesIntersections/output/10 - 10 coincident lines.txt +1 -0
- package/config/easy/LinesIntersections/output/11 - All cases.txt +14 -0
- package/config/easy/LinesIntersections/output/12 - Star.txt +2 -0
- package/config/easy/SetProbabilitiesCardGame/code/CGCode.cpp +24 -0
- package/config/easy/SetProbabilitiesCardGame/code/CGCode.java +22 -0
- package/config/easy/SetProbabilitiesCardGame/code/CGCode.js +13 -0
- package/config/easy/SetProbabilitiesCardGame/code/CGCode.php +12 -0
- package/config/easy/SetProbabilitiesCardGame/code/CGCode.ts +13 -0
- package/config/easy/SetProbabilitiesCardGame/config.json +48 -0
- package/config/easy/SetProbabilitiesCardGame/input/01 - A simple start.txt +3 -0
- package/config/easy/SetProbabilitiesCardGame/input/02 - A few more cards.txt +6 -0
- package/config/easy/SetProbabilitiesCardGame/input/03 - And a few more....txt +9 -0
- package/config/easy/SetProbabilitiesCardGame/input/04 - A classic game of set.txt +13 -0
- package/config/easy/SetProbabilitiesCardGame/input/05 - Lots of cards.txt +16 -0
- package/config/easy/SetProbabilitiesCardGame/input/06 - Almost guaranteed.txt +20 -0
- package/config/easy/SetProbabilitiesCardGame/input/07 - No need to draw a card!.txt +8 -0
- package/config/easy/SetProbabilitiesCardGame/input/08 - I need to draw a card.txt +21 -0
- package/config/easy/SetProbabilitiesCardGame/output/01 - A simple start.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/02 - A few more cards.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/03 - And a few more....txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/04 - A classic game of set.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/05 - Lots of cards.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/06 - Almost guaranteed.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/07 - No need to draw a card!.txt +1 -0
- package/config/easy/SetProbabilitiesCardGame/output/08 - I need to draw a card.txt +1 -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/{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/03 - impossible.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/06 - we have a problem.txt +1 -0
- package/config/hard/Surakarta/output/07 - it works.txt +1 -0
- package/config/hard/Surakarta/output/08 - number test.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/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/medium/ShortestPalindromicPath/code/CGCode.cpp +27 -0
- package/config/medium/ShortestPalindromicPath/code/CGCode.java +26 -0
- package/config/medium/ShortestPalindromicPath/code/CGCode.js +15 -0
- package/config/medium/ShortestPalindromicPath/code/CGCode.php +13 -0
- package/config/medium/ShortestPalindromicPath/code/CGCode.ts +15 -0
- package/config/medium/ShortestPalindromicPath/config.json +108 -0
- package/config/medium/ShortestPalindromicPath/input/01 - Example 1.txt +6 -0
- package/config/medium/ShortestPalindromicPath/input/02 - Example 2.txt +8 -0
- package/config/medium/ShortestPalindromicPath/input/03 - No Diagonal.txt +8 -0
- package/config/medium/ShortestPalindromicPath/input/04 - Palindromic Required.txt +8 -0
- package/config/medium/ShortestPalindromicPath/input/05 - All 26 Characters.txt +11 -0
- package/config/medium/ShortestPalindromicPath/input/06 - Smallest.txt +5 -0
- package/config/medium/ShortestPalindromicPath/input/07 - Adjacent Start and Goal.txt +9 -0
- package/config/medium/ShortestPalindromicPath/input/08 - Uniform.txt +9 -0
- package/config/medium/ShortestPalindromicPath/input/09 - Odd.txt +10 -0
- package/config/medium/ShortestPalindromicPath/input/10 - Even.txt +11 -0
- package/config/medium/ShortestPalindromicPath/input/11 - Multiple Paths.txt +7 -0
- package/config/medium/ShortestPalindromicPath/input/12 - Loop at Middle.txt +9 -0
- package/config/medium/ShortestPalindromicPath/input/13 - Loop at Start.txt +10 -0
- package/config/medium/ShortestPalindromicPath/input/14 - Loop at Goal.txt +11 -0
- package/config/medium/ShortestPalindromicPath/input/15 - Multiple Loops.txt +11 -0
- package/config/medium/ShortestPalindromicPath/input/16 - Long Sparse Snake.txt +53 -0
- package/config/medium/ShortestPalindromicPath/input/17 - Long Spiral.txt +53 -0
- package/config/medium/ShortestPalindromicPath/input/18 - Long Snake.txt +53 -0
- package/config/medium/ShortestPalindromicPath/input/19 - Many BFS Steps.txt +53 -0
- package/config/medium/ShortestPalindromicPath/input/20 - Many More BFS Steps.txt +53 -0
- package/config/medium/ShortestPalindromicPath/output/01 - Example 1.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/02 - Example 2.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/03 - No Diagonal.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/04 - Palindromic Required.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/05 - All 26 Characters.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/06 - Smallest.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/07 - Adjacent Start and Goal.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/08 - Uniform.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/09 - Odd.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/10 - Even.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/11 - Multiple Paths.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/12 - Loop at Middle.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/13 - Loop at Start.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/14 - Loop at Goal.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/15 - Multiple Loops.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/16 - Long Sparse Snake.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/17 - Long Spiral.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/18 - Long Snake.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/19 - Many BFS Steps.txt +1 -0
- package/config/medium/ShortestPalindromicPath/output/20 - Many More BFS Steps.txt +1 -0
- package/config/medium/Snowflakes/code/CGCode.cpp +23 -0
- package/config/medium/Snowflakes/code/CGCode.java +24 -0
- package/config/medium/Snowflakes/code/CGCode.js +12 -0
- package/config/medium/Snowflakes/code/CGCode.php +12 -0
- package/config/medium/Snowflakes/code/CGCode.ts +12 -0
- package/config/medium/Snowflakes/config.json +128 -0
- package/config/medium/Snowflakes/input/01 - Single Snowflake.txt +4 -0
- package/config/medium/Snowflakes/input/02 - Two Snowflakes.txt +6 -0
- package/config/medium/Snowflakes/input/03 - Simple Unique.txt +6 -0
- package/config/medium/Snowflakes/input/04 - Simple Rotation.txt +5 -0
- package/config/medium/Snowflakes/input/05 - Simple Flipped.txt +9 -0
- package/config/medium/Snowflakes/input/06 - All Rotations.txt +8 -0
- package/config/medium/Snowflakes/input/07 - All Orientations.txt +4 -0
- package/config/medium/Snowflakes/input/08 - Big Flake.txt +6 -0
- package/config/medium/Snowflakes/input/09 - Empty Sky.txt +31 -0
- package/config/medium/Snowflakes/input/10 - Micro-Lens.txt +2 -0
- package/config/medium/Snowflakes/input/11 - Micro-Lens 2.txt +2 -0
- package/config/medium/Snowflakes/input/12 - Single Flakes.txt +9 -0
- package/config/medium/Snowflakes/input/13 - Myth Busted.txt +21 -0
- package/config/medium/Snowflakes/input/14 - Myth Confirmed.txt +9 -0
- package/config/medium/Snowflakes/input/15 - Test 15.txt +49 -0
- package/config/medium/Snowflakes/input/16 - Test 16.txt +49 -0
- package/config/medium/Snowflakes/input/17 - Test 17.txt +51 -0
- package/config/medium/Snowflakes/input/18 - All But One.txt +31 -0
- package/config/medium/Snowflakes/input/19 - Random.txt +51 -0
- package/config/medium/Snowflakes/input/20 - Random 2.txt +21 -0
- package/config/medium/Snowflakes/input/21 - Random 3.txt +51 -0
- package/config/medium/Snowflakes/input/22 - Random 4.txt +51 -0
- package/config/medium/Snowflakes/input/23 - Many Hollow.txt +31 -0
- package/config/medium/Snowflakes/input/24 - Flakes in Flakes.txt +51 -0
- package/config/medium/Snowflakes/output/01 - Single Snowflake.txt +2 -0
- package/config/medium/Snowflakes/output/02 - Two Snowflakes.txt +2 -0
- package/config/medium/Snowflakes/output/03 - Simple Unique.txt +2 -0
- package/config/medium/Snowflakes/output/04 - Simple Rotation.txt +2 -0
- package/config/medium/Snowflakes/output/05 - Simple Flipped.txt +2 -0
- package/config/medium/Snowflakes/output/06 - All Rotations.txt +2 -0
- package/config/medium/Snowflakes/output/07 - All Orientations.txt +2 -0
- package/config/medium/Snowflakes/output/08 - Big Flake.txt +2 -0
- package/config/medium/Snowflakes/output/09 - Empty Sky.txt +2 -0
- package/config/medium/Snowflakes/output/10 - Micro-Lens.txt +2 -0
- package/config/medium/Snowflakes/output/11 - Micro-Lens 2.txt +2 -0
- package/config/medium/Snowflakes/output/12 - Single Flakes.txt +2 -0
- package/config/medium/Snowflakes/output/13 - Myth Busted.txt +2 -0
- package/config/medium/Snowflakes/output/14 - Myth Confirmed.txt +2 -0
- package/config/medium/Snowflakes/output/15 - Test 15.txt +2 -0
- package/config/medium/Snowflakes/output/16 - Test 16.txt +2 -0
- package/config/medium/Snowflakes/output/17 - Test 17.txt +2 -0
- package/config/medium/Snowflakes/output/18 - All But One.txt +2 -0
- package/config/medium/Snowflakes/output/19 - Random.txt +2 -0
- package/config/medium/Snowflakes/output/20 - Random 2.txt +2 -0
- package/config/medium/Snowflakes/output/21 - Random 3.txt +2 -0
- package/config/medium/Snowflakes/output/22 - Random 4.txt +2 -0
- package/config/medium/Snowflakes/output/23 - Many Hollow.txt +2 -0
- package/config/medium/Snowflakes/output/24 - Flakes in Flakes.txt +2 -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/config/medium/TicTacToeEngine/code/CGCode.cpp +21 -0
- package/config/medium/TicTacToeEngine/code/CGCode.java +19 -0
- package/config/medium/TicTacToeEngine/code/CGCode.js +9 -0
- package/config/medium/TicTacToeEngine/code/CGCode.php +11 -0
- package/config/medium/TicTacToeEngine/code/CGCode.ts +9 -0
- package/config/medium/TicTacToeEngine/config.json +68 -0
- package/config/medium/TicTacToeEngine/input/01 - Winning Move.txt +4 -0
- package/config/medium/TicTacToeEngine/input/02 - Blocking the Win.txt +4 -0
- package/config/medium/TicTacToeEngine/input/03 - Decisive Move.txt +4 -0
- package/config/medium/TicTacToeEngine/input/04 - Drawn.txt +4 -0
- package/config/medium/TicTacToeEngine/input/05 - Optimal Win.txt +4 -0
- package/config/medium/TicTacToeEngine/input/06 - Winning Position.txt +4 -0
- package/config/medium/TicTacToeEngine/input/07 - Lost.txt +4 -0
- package/config/medium/TicTacToeEngine/input/08 - Hold the Draw.txt +4 -0
- package/config/medium/TicTacToeEngine/input/09 - Losing Position.txt +4 -0
- package/config/medium/TicTacToeEngine/input/10 - Free Reign.txt +4 -0
- package/config/medium/TicTacToeEngine/input/11 - Corner Strategy.txt +4 -0
- package/config/medium/TicTacToeEngine/input/12 - Starting Position.txt +4 -0
- package/config/medium/TicTacToeEngine/output/01 - Winning Move.txt +3 -0
- package/config/medium/TicTacToeEngine/output/02 - Blocking the Win.txt +3 -0
- package/config/medium/TicTacToeEngine/output/03 - Decisive Move.txt +3 -0
- package/config/medium/TicTacToeEngine/output/04 - Drawn.txt +3 -0
- package/config/medium/TicTacToeEngine/output/05 - Optimal Win.txt +3 -0
- package/config/medium/TicTacToeEngine/output/06 - Winning Position.txt +3 -0
- package/config/medium/TicTacToeEngine/output/07 - Lost.txt +3 -0
- package/config/medium/TicTacToeEngine/output/08 - Hold the Draw.txt +3 -0
- package/config/medium/TicTacToeEngine/output/09 - Losing Position.txt +3 -0
- package/config/medium/TicTacToeEngine/output/10 - Free Reign.txt +3 -0
- package/config/medium/TicTacToeEngine/output/11 - Corner Strategy.txt +3 -0
- package/config/medium/TicTacToeEngine/output/12 - Starting Position.txt +3 -0
- package/package.json +1 -1
- /package/config/{medium/Surakarta/output/03 - impossible.txt → easy/LinesIntersections/input/07 - Zero.txt} +0 -0
- /package/config/{medium/Surakarta/output/06 - we have a problem.txt → easy/LinesIntersections/output/03 - Two parallel.txt} +0 -0
- /package/config/{medium/Surakarta/output/08 - number test.txt → easy/LinesIntersections/output/06 - One line.txt} +0 -0
- /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/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
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.23.0] - 2026-02-02
|
|
8
|
+
### Added
|
|
9
|
+
- configuration for "Mountain range".
|
|
10
|
+
- configuration for "Distinct Circular Linked Lists".
|
|
11
|
+
- configuration for "The Queen’s Trek (Wythoff’s Game)".
|
|
12
|
+
- configuration for "Simple Diff Tool".
|
|
13
|
+
- configuration for "Santa’s Garland".
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- difficulty of "No More Pythons, Please!" from easy to medium.
|
|
17
|
+
- difficulty of "The alien business of cows" from easy to medium.
|
|
18
|
+
- difficulty of "Surakarta" from medium to hard.
|
|
19
|
+
- difficulty of "Recurring Decimals" from expert to hard.
|
|
20
|
+
- difficulty of "Guessing digits" from medium to hard.
|
|
21
|
+
- difficulty of "Parse SQL Queries" from medium to hard.
|
|
22
|
+
|
|
23
|
+
## [1.22.0] - 2025-12-31
|
|
24
|
+
### Added
|
|
25
|
+
- configuration for "Lines Intersections".
|
|
26
|
+
- configuration for "Tic Tac Toe Engine".
|
|
27
|
+
- configuration for "Shortest Palindromic Path".
|
|
28
|
+
- configuration for "Snowflakes".
|
|
29
|
+
- configuration for "Set Probabilities (Card Game)".
|
|
30
|
+
|
|
7
31
|
## [1.21.0] - 2025-11-30
|
|
8
32
|
### Added
|
|
9
33
|
- configuration for "Gauss and the Stolen Numbers".
|
package/LICENSE
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
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 x1;
|
|
14
|
+
int y1;
|
|
15
|
+
int x2;
|
|
16
|
+
int y2;
|
|
17
|
+
cin >> x1 >> y1 >> x2 >> y2; cin.ignore();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
21
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
22
|
+
|
|
23
|
+
cout << "0" << endl;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 x1 = in.nextInt();
|
|
12
|
+
int y1 = in.nextInt();
|
|
13
|
+
int x2 = in.nextInt();
|
|
14
|
+
int y2 = in.nextInt();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Write an answer using System.out.println()
|
|
18
|
+
// To debug: System.err.println("Debug messages...");
|
|
19
|
+
|
|
20
|
+
System.out.println("0");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const n = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs = readline().split(' ');
|
|
4
|
+
const x1 = parseInt(inputs[0]);
|
|
5
|
+
const y1 = parseInt(inputs[1]);
|
|
6
|
+
const x2 = parseInt(inputs[2]);
|
|
7
|
+
const y2 = parseInt(inputs[3]);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Write an answer using console.log()
|
|
11
|
+
// To debug: console.error('Debug messages...');
|
|
12
|
+
|
|
13
|
+
console.log('0');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d", $n);
|
|
3
|
+
for ($i = 0; $i < $n; $i++)
|
|
4
|
+
{
|
|
5
|
+
fscanf(STDIN, "%d %d %d %d", $x1, $y1, $x2, $y2);
|
|
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("0\n");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const n: number = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs: string[] = readline().split(' ');
|
|
4
|
+
const x1: number = parseInt(inputs[0]);
|
|
5
|
+
const y1: number = parseInt(inputs[1]);
|
|
6
|
+
const x2: number = parseInt(inputs[2]);
|
|
7
|
+
const y2: number = parseInt(inputs[3]);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Write an answer using console.log()
|
|
11
|
+
// To debug: console.error('Debug messages...');
|
|
12
|
+
|
|
13
|
+
console.log('0');
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/LinesIntersections",
|
|
3
|
+
"name": "Lines Intersections",
|
|
4
|
+
"alphanumName": "LinesIntersections",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/lines-intersections",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Triangle",
|
|
9
|
+
"alphanumName": "Triangle",
|
|
10
|
+
"file": "01 - Triangle.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Two intersects",
|
|
14
|
+
"alphanumName": "TwoIntersects",
|
|
15
|
+
"file": "02 - Two intersects.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Two parallel",
|
|
19
|
+
"alphanumName": "TwoParallel",
|
|
20
|
+
"file": "03 - Two parallel.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Square",
|
|
24
|
+
"alphanumName": "Square",
|
|
25
|
+
"file": "04 - Square.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Square crossed",
|
|
29
|
+
"alphanumName": "SquareCrossed",
|
|
30
|
+
"file": "05 - Square crossed.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "One line",
|
|
34
|
+
"alphanumName": "OneLine",
|
|
35
|
+
"file": "06 - One line.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Zero",
|
|
39
|
+
"alphanumName": "Zero",
|
|
40
|
+
"file": "07 - Zero.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "10 lines",
|
|
44
|
+
"alphanumName": "TenLines",
|
|
45
|
+
"file": "08 - 10 lines.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "10 lines with maximum intersections",
|
|
49
|
+
"alphanumName": "TenLinesWithMaximumIntersections",
|
|
50
|
+
"file": "09 - 10 lines with maximum intersections.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "10 coincident lines",
|
|
54
|
+
"alphanumName": "TenCoincidentLines",
|
|
55
|
+
"file": "10 - 10 coincident lines.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "All cases",
|
|
59
|
+
"alphanumName": "AllCases",
|
|
60
|
+
"file": "11 - All cases.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Star",
|
|
64
|
+
"alphanumName": "Star",
|
|
65
|
+
"file": "12 - Star.txt"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
38
|
|
2
|
+
-20.000 -20.000
|
|
3
|
+
-19.000 -18.000
|
|
4
|
+
-18.000 -16.000
|
|
5
|
+
-12.500 10.000
|
|
6
|
+
-10.250 11.000
|
|
7
|
+
-5.000 10.000
|
|
8
|
+
-4.500 11.000
|
|
9
|
+
-2.857 14.286
|
|
10
|
+
-0.333 19.333
|
|
11
|
+
2.385 16.615
|
|
12
|
+
5.000 5.000
|
|
13
|
+
5.000 6.000
|
|
14
|
+
5.000 7.000
|
|
15
|
+
5.000 10.000
|
|
16
|
+
5.000 11.000
|
|
17
|
+
5.000 14.000
|
|
18
|
+
5.000 17.778
|
|
19
|
+
5.000 30.000
|
|
20
|
+
8.000 10.000
|
|
21
|
+
8.000 11.000
|
|
22
|
+
8.500 10.500
|
|
23
|
+
9.000 10.000
|
|
24
|
+
9.000 11.000
|
|
25
|
+
9.500 9.500
|
|
26
|
+
10.000 10.000
|
|
27
|
+
10.000 11.000
|
|
28
|
+
11.000 11.000
|
|
29
|
+
15.000 4.000
|
|
30
|
+
15.000 10.000
|
|
31
|
+
15.000 11.000
|
|
32
|
+
15.000 15.000
|
|
33
|
+
15.000 16.000
|
|
34
|
+
15.000 17.000
|
|
35
|
+
15.000 22.222
|
|
36
|
+
15.000 50.000
|
|
37
|
+
24.400 26.400
|
|
38
|
+
26.200 27.200
|
|
39
|
+
28.000 28.000
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
45
|
|
2
|
+
-1166.588 504.706
|
|
3
|
+
-242.222 -598.333
|
|
4
|
+
-153.333 332.000
|
|
5
|
+
-140.556 -217.083
|
|
6
|
+
-118.158 -53.158
|
|
7
|
+
-98.154 -58.077
|
|
8
|
+
-89.091 -24.091
|
|
9
|
+
-86.545 -14.545
|
|
10
|
+
-81.818 -16.818
|
|
11
|
+
-78.000 75.000
|
|
12
|
+
-75.109 73.859
|
|
13
|
+
-72.857 66.429
|
|
14
|
+
-68.652 52.553
|
|
15
|
+
-67.385 57.308
|
|
16
|
+
-64.127 69.524
|
|
17
|
+
-55.581 9.419
|
|
18
|
+
-48.596 127.763
|
|
19
|
+
-45.000 20.000
|
|
20
|
+
-41.801 -36.057
|
|
21
|
+
-38.889 -110.333
|
|
22
|
+
-30.054 -74.823
|
|
23
|
+
-27.544 -83.105
|
|
24
|
+
-24.647 -76.152
|
|
25
|
+
-24.023 -94.724
|
|
26
|
+
-14.906 50.094
|
|
27
|
+
-13.591 -49.619
|
|
28
|
+
-10.847 54.153
|
|
29
|
+
-9.810 -79.801
|
|
30
|
+
-9.344 -39.426
|
|
31
|
+
-7.208 47.056
|
|
32
|
+
0.973 -56.622
|
|
33
|
+
5.337 -63.896
|
|
34
|
+
8.719 -60.345
|
|
35
|
+
11.494 10.586
|
|
36
|
+
19.154 -86.923
|
|
37
|
+
21.902 35.565
|
|
38
|
+
34.167 -33.625
|
|
39
|
+
58.571 123.571
|
|
40
|
+
60.681 -85.327
|
|
41
|
+
67.609 -98.838
|
|
42
|
+
78.707 13.142
|
|
43
|
+
110.953 -109.497
|
|
44
|
+
310.588 -572.647
|
|
45
|
+
849.420 -291.087
|
|
46
|
+
2690.000 2755.000
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -0,0 +1,24 @@
|
|
|
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; // the number of cards on the table
|
|
11
|
+
cin >> n; cin.ignore();
|
|
12
|
+
for (int i = 0; i < n; i++) {
|
|
13
|
+
int number;
|
|
14
|
+
string shading;
|
|
15
|
+
string color;
|
|
16
|
+
string shape;
|
|
17
|
+
cin >> number >> shading >> color >> shape; cin.ignore();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
21
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
22
|
+
|
|
23
|
+
cout << "0.5000" << endl;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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(); // the number of cards on the table
|
|
10
|
+
for (int i = 0; i < n; i++) {
|
|
11
|
+
int number = in.nextInt();
|
|
12
|
+
String shading = in.next();
|
|
13
|
+
String color = in.next();
|
|
14
|
+
String shape = in.next();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Write an answer using System.out.println()
|
|
18
|
+
// To debug: System.err.println("Debug messages...");
|
|
19
|
+
|
|
20
|
+
System.out.println("0.5000");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const n = parseInt(readline()); // the number of cards on the table
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs = readline().split(' ');
|
|
4
|
+
const number = parseInt(inputs[0]);
|
|
5
|
+
const shading = inputs[1];
|
|
6
|
+
const color = inputs[2];
|
|
7
|
+
const shape = inputs[3];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Write an answer using console.log()
|
|
11
|
+
// To debug: console.error('Debug messages...');
|
|
12
|
+
|
|
13
|
+
console.log('0.5000');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
// $n: the number of cards on the table
|
|
3
|
+
fscanf(STDIN, "%d", $n);
|
|
4
|
+
for ($i = 0; $i < $n; $i++)
|
|
5
|
+
{
|
|
6
|
+
fscanf(STDIN, "%d %s %s %s", $number, $shading, $color, $shape);
|
|
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("0.5000\n");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const n: number = parseInt(readline()); // the number of cards on the table
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
var inputs: string[] = readline().split(' ');
|
|
4
|
+
const number: number = parseInt(inputs[0]);
|
|
5
|
+
const shading: string = inputs[1];
|
|
6
|
+
const color: string = inputs[2];
|
|
7
|
+
const shape: string = inputs[3];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Write an answer using console.log()
|
|
11
|
+
// To debug: console.error('Debug messages...');
|
|
12
|
+
|
|
13
|
+
console.log('0.5000');
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/SetProbabilitiesCardGame",
|
|
3
|
+
"name": "Set Probabilities (Card Game)",
|
|
4
|
+
"alphanumName": "SetProbabilitiesCardGame",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/set-probabilities-card-game",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "A simple start",
|
|
9
|
+
"alphanumName": "ASimpleStart",
|
|
10
|
+
"file": "01 - A simple start.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "A few more cards",
|
|
14
|
+
"alphanumName": "AFewMoreCards",
|
|
15
|
+
"file": "02 - A few more cards.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "And a few more...",
|
|
19
|
+
"alphanumName": "AndAFewMore",
|
|
20
|
+
"file": "03 - And a few more....txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "A classic game of set",
|
|
24
|
+
"alphanumName": "AClassicGameOfSet",
|
|
25
|
+
"file": "04 - A classic game of set.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Lots of cards",
|
|
29
|
+
"alphanumName": "LotsOfCards",
|
|
30
|
+
"file": "05 - Lots of cards.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Almost guaranteed",
|
|
34
|
+
"alphanumName": "AlmostGuaranteed",
|
|
35
|
+
"file": "06 - Almost guaranteed.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "No need to draw a card!",
|
|
39
|
+
"alphanumName": "NoNeedToDrawACard",
|
|
40
|
+
"file": "07 - No need to draw a card!.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "I need to draw a card??",
|
|
44
|
+
"alphanumName": "INeedToDrawACard",
|
|
45
|
+
"file": "08 - I need to draw a card.txt"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
12
|
|
2
|
+
3 OUTLINED RED SQUIGGLE
|
|
3
|
+
2 SOLID GREEN OVAL
|
|
4
|
+
3 STRIPED GREEN OVAL
|
|
5
|
+
1 SOLID PURPLE DIAMOND
|
|
6
|
+
3 SOLID GREEN SQUIGGLE
|
|
7
|
+
2 OUTLINED GREEN OVAL
|
|
8
|
+
1 SOLID RED SQUIGGLE
|
|
9
|
+
1 OUTLINED PURPLE OVAL
|
|
10
|
+
3 SOLID PURPLE OVAL
|
|
11
|
+
1 STRIPED GREEN OVAL
|
|
12
|
+
3 SOLID GREEN DIAMOND
|
|
13
|
+
1 OUTLINED GREEN SQUIGGLE
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
15
|
|
2
|
+
2 SOLID RED SQUIGGLE
|
|
3
|
+
3 STRIPED RED OVAL
|
|
4
|
+
3 STRIPED PURPLE DIAMOND
|
|
5
|
+
2 SOLID RED DIAMOND
|
|
6
|
+
3 SOLID GREEN OVAL
|
|
7
|
+
3 STRIPED GREEN DIAMOND
|
|
8
|
+
2 SOLID GREEN DIAMOND
|
|
9
|
+
3 OUTLINED RED OVAL
|
|
10
|
+
2 STRIPED PURPLE SQUIGGLE
|
|
11
|
+
1 OUTLINED RED OVAL
|
|
12
|
+
2 SOLID GREEN OVAL
|
|
13
|
+
3 OUTLINED PURPLE SQUIGGLE
|
|
14
|
+
2 STRIPED PURPLE DIAMOND
|
|
15
|
+
2 STRIPED RED SQUIGGLE
|
|
16
|
+
1 SOLID RED SQUIGGLE
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
19
|
|
2
|
+
3 STRIPED GREEN DIAMOND
|
|
3
|
+
2 SOLID RED SQUIGGLE
|
|
4
|
+
1 OUTLINED RED DIAMOND
|
|
5
|
+
3 SOLID RED OVAL
|
|
6
|
+
3 STRIPED PURPLE SQUIGGLE
|
|
7
|
+
2 SOLID RED OVAL
|
|
8
|
+
3 OUTLINED GREEN OVAL
|
|
9
|
+
3 SOLID PURPLE DIAMOND
|
|
10
|
+
1 STRIPED PURPLE SQUIGGLE
|
|
11
|
+
1 SOLID PURPLE DIAMOND
|
|
12
|
+
2 OUTLINED PURPLE DIAMOND
|
|
13
|
+
2 STRIPED PURPLE OVAL
|
|
14
|
+
3 SOLID PURPLE SQUIGGLE
|
|
15
|
+
3 SOLID RED SQUIGGLE
|
|
16
|
+
2 OUTLINED RED SQUIGGLE
|
|
17
|
+
1 OUTLINED RED OVAL
|
|
18
|
+
3 OUTLINED RED SQUIGGLE
|
|
19
|
+
1 STRIPED RED OVAL
|
|
20
|
+
1 SOLID PURPLE SQUIGGLE
|