@cyrilverloop/codingame-configuration 1.23.0 → 1.25.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 +17 -0
- package/config/easy/LaughterIsContagious/code/CGCode.cpp +17 -0
- package/config/easy/LaughterIsContagious/code/CGCode.java +16 -0
- package/config/easy/LaughterIsContagious/code/CGCode.js +6 -0
- package/config/easy/LaughterIsContagious/code/CGCode.php +7 -0
- package/config/easy/LaughterIsContagious/code/CGCode.ts +6 -0
- package/config/easy/LaughterIsContagious/config.json +68 -0
- package/config/easy/LaughterIsContagious/input/01 - Everybody laughing.txt +1 -0
- package/config/easy/LaughterIsContagious/input/02 - Too far.txt +1 -0
- package/config/easy/LaughterIsContagious/input/03 - Example.txt +1 -0
- package/config/easy/LaughterIsContagious/input/04 - Very funny.txt +1 -0
- package/config/easy/LaughterIsContagious/input/05 - Not funny.txt +1 -0
- package/config/easy/LaughterIsContagious/input/06 - Lonely.txt +1 -0
- package/config/easy/LaughterIsContagious/input/07 - Solidarity.txt +1 -0
- package/config/easy/LaughterIsContagious/input/08 - Big show.txt +1 -0
- package/config/easy/LaughterIsContagious/input/09 - Very big show.txt +1 -0
- package/config/easy/LaughterIsContagious/input/10 - One Man Show.txt +1 -0
- package/config/easy/LaughterIsContagious/input/11 - Duo.txt +1 -0
- package/config/easy/LaughterIsContagious/input/12 - Trio.txt +1 -0
- package/config/easy/LaughterIsContagious/output/01 - Everybody laughing.txt +1 -0
- package/config/easy/LaughterIsContagious/output/02 - Too far.txt +1 -0
- package/config/easy/LaughterIsContagious/output/03 - Example.txt +1 -0
- package/config/easy/LaughterIsContagious/output/04 - Very funny.txt +1 -0
- package/config/easy/LaughterIsContagious/output/05 - Not funny.txt +1 -0
- package/config/easy/LaughterIsContagious/output/06 - Lonely.txt +1 -0
- package/config/easy/LaughterIsContagious/output/07 - Solidarity.txt +1 -0
- package/config/easy/LaughterIsContagious/output/08 - Big show.txt +1 -0
- package/config/easy/LaughterIsContagious/output/09 - Very big show.txt +1 -0
- package/config/easy/LaughterIsContagious/output/10 - One Man Show.txt +1 -0
- package/config/easy/LaughterIsContagious/output/11 - Duo.txt +1 -0
- package/config/easy/LaughterIsContagious/output/12 - Trio.txt +1 -0
- 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/RequestValidator/code/CGCode.cpp +19 -0
- package/config/easy/RequestValidator/code/CGCode.java +17 -0
- package/config/easy/RequestValidator/code/CGCode.js +7 -0
- package/config/easy/RequestValidator/code/CGCode.php +8 -0
- package/config/easy/RequestValidator/code/CGCode.ts +7 -0
- package/config/easy/RequestValidator/config.json +83 -0
- package/config/easy/RequestValidator/input/01 - Order Up!.txt +2 -0
- package/config/easy/RequestValidator/input/02 - Corrupted.txt +2 -0
- package/config/easy/RequestValidator/input/03 - One Cup.txt +2 -0
- package/config/easy/RequestValidator/input/04 - Checksum Error.txt +2 -0
- package/config/easy/RequestValidator/input/05 - Department Fix.txt +2 -0
- package/config/easy/RequestValidator/input/06 - Mismatched Order.txt +2 -0
- package/config/easy/RequestValidator/input/07 - Misplaced Order.txt +2 -0
- package/config/easy/RequestValidator/input/08 - Order Zero.txt +2 -0
- package/config/easy/RequestValidator/input/09 - Standardised Order.txt +2 -0
- package/config/easy/RequestValidator/input/10 - Decaffeinated Coffee.txt +2 -0
- package/config/easy/RequestValidator/input/11 - Invalid Header.txt +2 -0
- package/config/easy/RequestValidator/input/12 - Infinite Stock.txt +2 -0
- package/config/easy/RequestValidator/input/13 - Padded Frame.txt +2 -0
- package/config/easy/RequestValidator/input/14 - 0xC0FFEE.txt +2 -0
- package/config/easy/RequestValidator/input/15 - Missing Checksum.txt +2 -0
- package/config/easy/RequestValidator/output/01 - Order Up!.txt +6 -0
- package/config/easy/RequestValidator/output/02 - Corrupted.txt +1 -0
- package/config/easy/RequestValidator/output/03 - One Cup.txt +1 -0
- package/config/easy/RequestValidator/output/04 - Checksum Error.txt +1 -0
- package/config/easy/RequestValidator/output/05 - Department Fix.txt +16 -0
- package/config/easy/RequestValidator/output/06 - Mismatched Order.txt +1 -0
- package/config/easy/RequestValidator/output/07 - Misplaced Order.txt +1 -0
- package/config/easy/RequestValidator/output/08 - Order Zero.txt +7 -0
- package/config/easy/RequestValidator/output/09 - Standardised Order.txt +1 -0
- package/config/easy/RequestValidator/output/10 - Decaffeinated Coffee.txt +1 -0
- package/config/easy/RequestValidator/output/11 - Invalid Header.txt +1 -0
- package/config/easy/RequestValidator/output/12 - Infinite Stock.txt +16 -0
- package/config/easy/RequestValidator/output/13 - Padded Frame.txt +1 -0
- package/config/easy/RequestValidator/output/14 - 0xC0FFEE.txt +4 -0
- package/config/easy/RequestValidator/output/15 - Missing Checksum.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/SolarShadowHunter/code/CGCode.cpp +24 -0
- package/config/easy/SolarShadowHunter/code/CGCode.java +24 -0
- package/config/easy/SolarShadowHunter/code/CGCode.js +12 -0
- package/config/easy/SolarShadowHunter/code/CGCode.php +12 -0
- package/config/easy/SolarShadowHunter/code/CGCode.ts +12 -0
- package/config/easy/SolarShadowHunter/config.json +43 -0
- package/config/easy/SolarShadowHunter/input/01 - test 1.txt +7 -0
- package/config/easy/SolarShadowHunter/input/02 - test 2.txt +6 -0
- package/config/easy/SolarShadowHunter/input/03 - test 3.txt +8 -0
- package/config/easy/SolarShadowHunter/input/04 - test 4.txt +6 -0
- package/config/easy/SolarShadowHunter/input/05 - test 5.txt +7 -0
- package/config/easy/SolarShadowHunter/input/06 - test 6.txt +22 -0
- package/config/easy/SolarShadowHunter/input/07 - test 7.txt +32 -0
- package/config/easy/SolarShadowHunter/output/01 - test 1.txt +1 -0
- package/config/easy/SolarShadowHunter/output/02 - test 2.txt +1 -0
- package/config/easy/SolarShadowHunter/output/03 - test 3.txt +1 -0
- package/config/easy/SolarShadowHunter/output/04 - test 4.txt +1 -0
- package/config/easy/SolarShadowHunter/output/05 - test 5.txt +1 -0
- package/config/easy/SolarShadowHunter/output/06 - test 6.txt +1 -0
- package/config/easy/SolarShadowHunter/output/07 - test 7.txt +1 -0
- package/config/easy/TheDescentPart2/code/CGCode.cpp +29 -0
- package/config/easy/TheDescentPart2/code/CGCode.java +25 -0
- package/config/easy/TheDescentPart2/code/CGCode.js +18 -0
- package/config/easy/TheDescentPart2/code/CGCode.php +17 -0
- package/config/easy/TheDescentPart2/code/CGCode.ts +18 -0
- package/config/easy/TheDescentPart2/config.json +58 -0
- package/config/easy/TheDescentPart2/input/01 - test 1.txt +7 -0
- package/config/easy/TheDescentPart2/input/02 - test 2.txt +10 -0
- package/config/easy/TheDescentPart2/input/03 - test 3.txt +14 -0
- package/config/easy/TheDescentPart2/input/04 - test 4.txt +9 -0
- package/config/easy/TheDescentPart2/input/05 - test 5.txt +15 -0
- package/config/easy/TheDescentPart2/input/06 - test 6.txt +10 -0
- package/config/easy/TheDescentPart2/input/07 - test 7.txt +13 -0
- package/config/easy/TheDescentPart2/input/08 - test 8.txt +10 -0
- package/config/easy/TheDescentPart2/input/09 - test 9.txt +18 -0
- package/config/easy/TheDescentPart2/input/10 - test 10.txt +18 -0
- package/config/easy/TheDescentPart2/output/01 - test 1.txt +1 -0
- package/config/easy/TheDescentPart2/output/02 - test 2.txt +1 -0
- package/config/easy/TheDescentPart2/output/03 - test 3.txt +1 -0
- package/config/easy/TheDescentPart2/output/04 - test 4.txt +1 -0
- package/config/easy/TheDescentPart2/output/05 - test 5.txt +1 -0
- package/config/easy/TheDescentPart2/output/06 - test 6.txt +1 -0
- package/config/easy/TheDescentPart2/output/07 - test 7.txt +1 -0
- package/config/easy/TheDescentPart2/output/08 - test 8.txt +1 -0
- package/config/easy/TheDescentPart2/output/09 - test 9.txt +1 -0
- package/config/easy/TheDescentPart2/output/10 - test 10.txt +1 -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/easy/WhereWasThisKnightBefore/code/CGCode.cpp +25 -0
- package/config/easy/WhereWasThisKnightBefore/code/CGCode.java +22 -0
- package/config/easy/WhereWasThisKnightBefore/code/CGCode.js +12 -0
- package/config/easy/WhereWasThisKnightBefore/code/CGCode.php +15 -0
- package/config/easy/WhereWasThisKnightBefore/code/CGCode.ts +12 -0
- package/config/easy/WhereWasThisKnightBefore/config.json +38 -0
- package/config/easy/WhereWasThisKnightBefore/input/01 - Easy start.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/input/02 - Some action.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/input/03 - Some noise on the board.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/input/04 - Check mate.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/input/05 - Crazy case.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/input/06 - Lots of noise.txt +17 -0
- package/config/easy/WhereWasThisKnightBefore/output/01 - Easy start.txt +2 -0
- package/config/easy/WhereWasThisKnightBefore/output/02 - Some action.txt +2 -0
- package/config/easy/WhereWasThisKnightBefore/output/03 - Some noise on the board.txt +2 -0
- package/config/easy/WhereWasThisKnightBefore/output/04 - Check mate.txt +2 -0
- package/config/easy/WhereWasThisKnightBefore/output/05 - Crazy case.txt +2 -0
- package/config/easy/WhereWasThisKnightBefore/output/06 - Lots of noise.txt +2 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/code/CGCode.cpp +28 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/code/CGCode.java +24 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/code/CGCode.js +15 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/code/CGCode.php +16 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/code/CGCode.ts +15 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/config.json +68 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/01 - Do I have a land.txt +5 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/02 - Any card will do.txt +6 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/03 - 100%.txt +4 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/04 - 0%.txt +4 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/05 - 1 Pattern.txt +6 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/06 - Overlap.txt +7 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/07 - 3 Patterns.txt +13 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/08 - 5 Patterns.txt +13 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/09 - 6 Patterns.txt +14 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/10 - 7 Patterns.txt +16 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/11 - 8 Patterns.txt +18 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/input/12 - 8 Patterns Impossible.txt +18 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/01 - Do I have a land.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/02 - Any card will do.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/03 - 100%.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/04 - 0%.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/05 - 1 Pattern.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/06 - Overlap.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/07 - 3 Patterns.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/08 - 5 Patterns.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/09 - 6 Patterns.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/10 - 7 Patterns.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/11 - 8 Patterns.txt +1 -0
- package/config/medium/ManaQuestHuntForThePerfectSeven/output/12 - 8 Patterns Impossible.txt +1 -0
- 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/TrigonometrySimplification/code/CGCode.cpp +19 -0
- package/config/medium/TrigonometrySimplification/code/CGCode.java +18 -0
- package/config/medium/TrigonometrySimplification/code/CGCode.js +9 -0
- package/config/medium/TrigonometrySimplification/code/CGCode.php +7 -0
- package/config/medium/TrigonometrySimplification/code/CGCode.ts +9 -0
- package/config/medium/TrigonometrySimplification/config.json +63 -0
- package/config/medium/TrigonometrySimplification/input/01 - test 1.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/02 - test 2.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/03 - test 3.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/04 - test 4.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/05 - test 5.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/06 - test 6.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/07 - test 7.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/08 - test 8.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/09 - test 9.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/10 - test 10.txt +1 -0
- package/config/medium/TrigonometrySimplification/input/11 - test 11.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/01 - test 1.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/02 - test 2.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/03 - test 3.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/04 - test 4.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/05 - test 5.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/06 - test 6.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/07 - test 7.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/08 - test 8.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/09 - test 9.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/10 - test 10.txt +1 -0
- package/config/medium/TrigonometrySimplification/output/11 - test 11.txt +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int c;
|
|
11
|
+
cin >> c; cin.ignore();
|
|
12
|
+
for (int i = 0; i < c; i++) {
|
|
13
|
+
string category;
|
|
14
|
+
int count;
|
|
15
|
+
cin >> category >> count; cin.ignore();
|
|
16
|
+
}
|
|
17
|
+
int q;
|
|
18
|
+
cin >> q; cin.ignore();
|
|
19
|
+
for (int i = 0; i < q; i++) {
|
|
20
|
+
string pattern;
|
|
21
|
+
cin >> pattern; cin.ignore();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
25
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
26
|
+
|
|
27
|
+
cout << "0.0000" << endl;
|
|
28
|
+
}
|
|
@@ -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 c = in.nextInt();
|
|
10
|
+
for (int i = 0; i < c; i++) {
|
|
11
|
+
String category = in.next();
|
|
12
|
+
int count = in.nextInt();
|
|
13
|
+
}
|
|
14
|
+
int q = in.nextInt();
|
|
15
|
+
for (int i = 0; i < q; i++) {
|
|
16
|
+
String pattern = in.next();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Write an answer using System.out.println()
|
|
20
|
+
// To debug: System.err.println("Debug messages...");
|
|
21
|
+
|
|
22
|
+
System.out.println("0.0000");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const c = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < c; i++) {
|
|
3
|
+
var inputs = readline().split(' ');
|
|
4
|
+
const category = inputs[0];
|
|
5
|
+
const count = parseInt(inputs[1]);
|
|
6
|
+
}
|
|
7
|
+
const q = parseInt(readline());
|
|
8
|
+
for (let i = 0; i < q; i++) {
|
|
9
|
+
const pattern = readline();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Write an answer using console.log()
|
|
13
|
+
// To debug: console.error('Debug messages...');
|
|
14
|
+
|
|
15
|
+
console.log('0.0000');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d", $c);
|
|
3
|
+
for ($i = 0; $i < $c; $i++)
|
|
4
|
+
{
|
|
5
|
+
fscanf(STDIN, "%s %d", $category, $count);
|
|
6
|
+
}
|
|
7
|
+
fscanf(STDIN, "%d", $q);
|
|
8
|
+
for ($i = 0; $i < $q; $i++)
|
|
9
|
+
{
|
|
10
|
+
fscanf(STDIN, "%s", $pattern);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
14
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
15
|
+
|
|
16
|
+
echo("0.0000\n");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const c: number = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < c; i++) {
|
|
3
|
+
var inputs: string[] = readline().split(' ');
|
|
4
|
+
const category: string = inputs[0];
|
|
5
|
+
const count: number = parseInt(inputs[1]);
|
|
6
|
+
}
|
|
7
|
+
const q: number = parseInt(readline());
|
|
8
|
+
for (let i = 0; i < q; i++) {
|
|
9
|
+
const pattern: string = readline();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Write an answer using console.log()
|
|
13
|
+
// To debug: console.error('Debug messages...');
|
|
14
|
+
|
|
15
|
+
console.log('0.0000');
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "medium/ManaQuestHuntForThePerfectSeven",
|
|
3
|
+
"name": "Mana Quest: Hunt for the Perfect Seven",
|
|
4
|
+
"alphanumName": "ManaQuestHuntForThePerfectSeven",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/mana-quest-hunt-for-the-perfect-seven",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Do I have a land",
|
|
9
|
+
"alphanumName": "DoIHaveALand",
|
|
10
|
+
"file": "01 - Do I have a land.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Any card will do",
|
|
14
|
+
"alphanumName": "AnyCardWillDo",
|
|
15
|
+
"file": "02 - Any card will do.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "100%",
|
|
19
|
+
"alphanumName": "AHundredPercent",
|
|
20
|
+
"file": "03 - 100%.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "0%",
|
|
24
|
+
"alphanumName": "ZeroPercent",
|
|
25
|
+
"file": "04 - 0%.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "1 Pattern",
|
|
29
|
+
"alphanumName": "OnePattern",
|
|
30
|
+
"file": "05 - 1 Pattern.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Overlap",
|
|
34
|
+
"alphanumName": "Overlap",
|
|
35
|
+
"file": "06 - Overlap.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "3 Patterns",
|
|
39
|
+
"alphanumName": "ThreePatterns",
|
|
40
|
+
"file": "07 - 3 Patterns.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "5 Patterns",
|
|
44
|
+
"alphanumName": "FivePatterns",
|
|
45
|
+
"file": "08 - 5 Patterns.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "6 Patterns",
|
|
49
|
+
"alphanumName": "SixPatterns",
|
|
50
|
+
"file": "09 - 6 Patterns.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "7 Patterns",
|
|
54
|
+
"alphanumName": "SevenPatterns",
|
|
55
|
+
"file": "10 - 7 Patterns.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "8 Patterns",
|
|
59
|
+
"alphanumName": "EightPatterns",
|
|
60
|
+
"file": "11 - 8 Patterns.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "8 Patterns Impossible",
|
|
64
|
+
"alphanumName": "EightPatternsImpossible",
|
|
65
|
+
"file": "12 - 8 Patterns Impossible.txt"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9861
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0000
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0000
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0000
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9517
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.7414
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3776
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2749
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0699
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0207
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0224
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0000
|
|
@@ -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
|
+
}
|