@cyrilverloop/codingame-configuration 1.21.0 → 1.22.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 +8 -0
- 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/07 - Zero.txt +1 -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/03 - Two parallel.txt +1 -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/06 - One line.txt +1 -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/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/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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
20 50
|
|
2
|
+
**..*..***...**.**...*..***.*.*...*....****.**.*..
|
|
3
|
+
*..*.***.....**.**..*...*...*.**..*****....*****..
|
|
4
|
+
..........*..******..**..*****....*.*...***.......
|
|
5
|
+
*..*.*.......*.**..***...**.**..*.*.*.....*....*..
|
|
6
|
+
..*..**..*..***..*.*.*..**...*.....***..******....
|
|
7
|
+
.**.*.*...*.....**..*......*.****..*.*..***..**...
|
|
8
|
+
*......*.*.**.....**..**..*.**.*..***....**...*...
|
|
9
|
+
..*....**.......*......*.*..*....**.*..**.*.*.*...
|
|
10
|
+
..*..*.....*.....**..*....*....*.***.*...***...***
|
|
11
|
+
.***...**...*..*.****.***....*...****.*.*....*.*.*
|
|
12
|
+
...**..****......*..*.*......**..***........*..**.
|
|
13
|
+
**.*..*...***.***...*.*..*.*.*...***...*..*.....*.
|
|
14
|
+
..****..*..*.**....***.***..*****..*.....*.*...*..
|
|
15
|
+
.*..*..**.***.*.*.*..**..**.**...***.*.*..*...**..
|
|
16
|
+
....*.*....*.*..*......*......**.**.....*..*...*.*
|
|
17
|
+
...*......*..****....**...****..*.*...*.....*..**.
|
|
18
|
+
...*..**.**.*.*.*..*...**.*..*****...*...**.***.*.
|
|
19
|
+
***..**.....*...*..*....**.*....*....*.****...*...
|
|
20
|
+
.**..**.***.*....***...*.*.*..*..***.*..*...*.....
|
|
21
|
+
..*******..***....*.*...*....**..*...*....**..*...
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
50 35
|
|
2
|
+
*.**.....**.*.**.****....*.*...*..*
|
|
3
|
+
.**.*...*...***...*.*..*..*.*****..
|
|
4
|
+
*...**.***.*.**.*.*.*.***...*....**
|
|
5
|
+
.*.*.....***....*...**..***.*.**...
|
|
6
|
+
.*.**.***..*.*...*..*.*...*.*.....*
|
|
7
|
+
.*****.*.*.*.....*...*.....***..**.
|
|
8
|
+
.***.*****.....*.*.........**.*....
|
|
9
|
+
.**.*.**...*......*..****..*.*..*..
|
|
10
|
+
*....**...*......***.*.*.*.*.*...**
|
|
11
|
+
*.***....**...**.*..*****......*..*
|
|
12
|
+
..**...*..*.....**......**.*.....*.
|
|
13
|
+
.*.**....*..**.*...**..**....****..
|
|
14
|
+
..*.....*..*.*....**.*...**.....*..
|
|
15
|
+
*.*.*..*.*..*..****.....**..**..*..
|
|
16
|
+
.*.*...*..*****...*****..*.....**.*
|
|
17
|
+
.....*..*.*.***....*..**.***.*..*..
|
|
18
|
+
...*****.*......****.*.**..*..*****
|
|
19
|
+
.*..**.*...**....*..*......**.....*
|
|
20
|
+
*.*.......***.....*..*....*.**....*
|
|
21
|
+
*...*..*..*.*.*.*......*.*...*....*
|
|
22
|
+
.*....*.*......*....*...........*..
|
|
23
|
+
*.*..*..*.*.*...***......*...***.*.
|
|
24
|
+
..*.*.*...*..**...*..*.**.***...***
|
|
25
|
+
.*....**.........*....*..*......*.*
|
|
26
|
+
..**.***.***......*.*.**.**...***..
|
|
27
|
+
**..**.....*....*....*..*.......*..
|
|
28
|
+
.*.**....*...*..*.*...**.*..*.***..
|
|
29
|
+
**..*.**....**.**......*..*...*....
|
|
30
|
+
...*.*....***.....*......**..*.*.*.
|
|
31
|
+
**.*.***...**.*.**.*.*.*.*....**...
|
|
32
|
+
***..*.........***.*.**..*.*.**.*.*
|
|
33
|
+
..**....**...*....**...*...*..*..**
|
|
34
|
+
...*.****.....*..*...*..**....*.**.
|
|
35
|
+
.*.*.*.*.*......**.**..*.*..**...**
|
|
36
|
+
..**..*...**.......*..*.......***.*
|
|
37
|
+
.**...*...**..*.*..*.**...**....*..
|
|
38
|
+
**...**.*.*.*...**....*****........
|
|
39
|
+
.*.*...***...*......*.****....**..*
|
|
40
|
+
...*....*.**.....*...***...*..*.*.*
|
|
41
|
+
*..***..***..**....*.......*...**..
|
|
42
|
+
...*.*....***.*..*.*...**...****..*
|
|
43
|
+
.*.*.***.*..**....*.....*****....**
|
|
44
|
+
.***.**.....*..*..****.****.*.***..
|
|
45
|
+
..*....**...*.**....*....*.*.**..*.
|
|
46
|
+
***....*..**.*..***..**..*.*.***..*
|
|
47
|
+
*.***..*.*.....*.*.***....***.....*
|
|
48
|
+
*...*...**.*..*.*.*.*.***.*.....*.*
|
|
49
|
+
.***.....*..****.*.**.**.**...**...
|
|
50
|
+
..*...**.*.*.***..*****....*...*.**
|
|
51
|
+
**.**..*..*....*.***.*..**.*...*.*.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
50 50
|
|
2
|
+
....*..*.**..*...*..*.*.*.*....**......*...****..*
|
|
3
|
+
....*******........*.....***..**.*..**...*...**..*
|
|
4
|
+
...*****.**....*.*........*......**.***..**..*..*.
|
|
5
|
+
..***......*.*..***...***.*....**............*.*..
|
|
6
|
+
.***.*...**.*...*.*.****.........***.*.**...*.....
|
|
7
|
+
***..........*..*.....*..**..*..**.**....**..*....
|
|
8
|
+
.....*.....***...*..**.**......*.*...**..******...
|
|
9
|
+
..***...***...*.**.*....*.*.....***..**...**.*...*
|
|
10
|
+
.*.***....*......****.**...*...*............*.*..*
|
|
11
|
+
***.**..*.........*.*.....***........**.*...**...*
|
|
12
|
+
*****..*..*..**.*..**..**.*...**..*..*.*....*..*.*
|
|
13
|
+
.*..*.........*...**..**...*.*.*...*...*.*....*..*
|
|
14
|
+
***.*.****...*...*.*.**..*..*...**.....**.*.*..*..
|
|
15
|
+
...****.*.*..***..****.....****.*..**.....*..*.**.
|
|
16
|
+
*.....*.*..**...**....**...*.*...*..**.**.*.*....*
|
|
17
|
+
..*******.....*.*..**.***..*.*...*.*....***...***.
|
|
18
|
+
.....*..........**.*....*..*...*.....***..*....**.
|
|
19
|
+
*..**.*.***......**.*.......*.*..*.....***.*......
|
|
20
|
+
.*.*..****...*.*.*****....*.**...*...*.*..*..**..*
|
|
21
|
+
*****.*.****..**......*.*.*.....*...*.*.....*....*
|
|
22
|
+
.......*.*......*..*.***.....****..****...**..***.
|
|
23
|
+
....*..*.*...**...**..**.*.*.*.*...*.***..*.**.*..
|
|
24
|
+
****.......**...*.*.**.......*........*.....*.*...
|
|
25
|
+
..*...*..*...**..**......****..**..**....*...*...*
|
|
26
|
+
.*...*.....**.....****........*...**...*..*.******
|
|
27
|
+
*****.*..*..*****..*.*.****..*......*..*..**.**...
|
|
28
|
+
.**....*.*.**.**.*.*..*...**..***.....**...**....*
|
|
29
|
+
.*******.*.........**...*....***..***.*.****..**.*
|
|
30
|
+
.***.*..***..*...**...*.***..*.*...****..*..*..***
|
|
31
|
+
***.*..*.*.....*..*.*.*.****.*.*..........*..*.*..
|
|
32
|
+
..*...**..**.........**.**.*.**.*.*..*....*.**.*..
|
|
33
|
+
**.*...**.*.*...*.*...*......*.*.*...*....*..**.**
|
|
34
|
+
...**.....**.......*.....*....*.......*.....*..*..
|
|
35
|
+
***.**.**..*.****......**..*.*.*.....*.*....*...**
|
|
36
|
+
.***...*.*.*.*..........*...**.......*..**...*.*..
|
|
37
|
+
.***.....*...**.*...****.*..*..*.....*.***....*.*.
|
|
38
|
+
...*.....*..**.***..*..*....**...***.****.....**..
|
|
39
|
+
...**.*....*...********..**..*.....*...*..*..**...
|
|
40
|
+
..*..*.**.....**...**.....*..*...*.*.....*.**.*...
|
|
41
|
+
.**.*...**....**..*..*...**..*.***.**....****.*...
|
|
42
|
+
....*....*...******....*...*..*.***...*.*.....*...
|
|
43
|
+
.*..*..**.***..*..**..*.....**..**...**.......*...
|
|
44
|
+
.*...**..**.*.*.*.*..*.*...**.**......**.....*..*.
|
|
45
|
+
.*...***..*..*..**......**.*.**...*...**..*.**...*
|
|
46
|
+
..*.*.*.......*****.*.**.**.....*.........*******.
|
|
47
|
+
......*.**....**.*.*..*.*.*..*..**.......*.*****..
|
|
48
|
+
...**.......*..***..***......*..*..*..****...**...
|
|
49
|
+
..*...............**..*.**.***.**.*.......*..****.
|
|
50
|
+
**...**.***.*.***.**.***......**...*.*..*.*.*..*..
|
|
51
|
+
...*..**..***......**......*.***..*.*....**....**.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
30 37
|
|
2
|
+
.....*...............................
|
|
3
|
+
.***...*****.......****..****........
|
|
4
|
+
.*.**..*...****....*..*..**.**.*.....
|
|
5
|
+
.*..*..*......*....*.**..**.**.****..
|
|
6
|
+
.****..********....***...****..*..*..
|
|
7
|
+
...............................****..
|
|
8
|
+
.***.****..***...***.....***.........
|
|
9
|
+
.*.*.*..*........*.**.........*****..
|
|
10
|
+
.*.*.*****.****..**.**..****...*..*..
|
|
11
|
+
.*.*.......*..*...**.*..*..*...****..
|
|
12
|
+
.*.*.*****.*..*....***..**.*.........
|
|
13
|
+
.*.*.*..*..*..*..........***...****..
|
|
14
|
+
.*.*.****..**.*................*..*..
|
|
15
|
+
.*.*........*.*...************.****..
|
|
16
|
+
.*.*........*.*...*..........*.*.....
|
|
17
|
+
.*.*.*****..***...************..****.
|
|
18
|
+
.*.*..*..*......................*..*.
|
|
19
|
+
.***..****..**......***..***....*****
|
|
20
|
+
...........****..*...................
|
|
21
|
+
.****......*..*............******.**.
|
|
22
|
+
.**.**.....****..****...****....*.*..
|
|
23
|
+
.**.**.....****..*..*...*.......*...*
|
|
24
|
+
.****...........*****...*********..**
|
|
25
|
+
............*........................
|
|
26
|
+
...***...****.***..............****..
|
|
27
|
+
..**.*...*..*......****........*..*..
|
|
28
|
+
.**.**...****..*.*.****....***.****..
|
|
29
|
+
.*.**..........*...*..*...**.*....*..
|
|
30
|
+
.***.....*....**...****...*..*......*
|
|
31
|
+
.....***.***....*...**....****.....**
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
50 50
|
|
2
|
+
...............................................***
|
|
3
|
+
****...............*******..........*******....*.*
|
|
4
|
+
..**..*****........*.....*....********....*....*..
|
|
5
|
+
..**..*...********.*...*.*.......****.*...****.***
|
|
6
|
+
..**..*.**.......*.*..**.*............***..**.....
|
|
7
|
+
..**..*.********.*.*.**..*...******...............
|
|
8
|
+
****..*....****.**.*.....*.....****...******.***..
|
|
9
|
+
......*****...*.*..*******.......**.*...****...*..
|
|
10
|
+
..*.......****.**.................*.**....**......
|
|
11
|
+
..****.......***.....................*.....*...*..
|
|
12
|
+
.********...........*****.....*******...***...***.
|
|
13
|
+
.......................**.....*.....*....*........
|
|
14
|
+
..*******************...*.....*.*...*.............
|
|
15
|
+
..*.................*.........*.**..*.************
|
|
16
|
+
..*.*.***...**...*.**.........*..**.*.*..........*
|
|
17
|
+
..*.*...*...*..***..**........*.....*.*.*.******.*
|
|
18
|
+
..*.*.......*........******...*******.*.**..****.*
|
|
19
|
+
..*..******...............*...........*.****..**.*
|
|
20
|
+
..*..*....*****...*******.**..******..*.******.*.*
|
|
21
|
+
..*..*........**..*.....*..*.......**.*.......*..*
|
|
22
|
+
..*..*.*******.*..*..*..*..*.....*....*..******..*
|
|
23
|
+
..*..*.*.....*.*..*.**..*..*...***..*.*..*....*..*
|
|
24
|
+
..*..*.*.***.*.*..*.*.*.*..*..****..*.*....*****.*
|
|
25
|
+
..*..*.*.....*.*..*.....*..*........*.*.*****....*
|
|
26
|
+
..*.**.*******.*..*******..*..*******.*..........*
|
|
27
|
+
..*..*.........*...........*..........************
|
|
28
|
+
..*..***********..***..***.*......................
|
|
29
|
+
..*........................*....****...*****..***.
|
|
30
|
+
..**************************....****.....*......*.
|
|
31
|
+
................................****.....*...**...
|
|
32
|
+
.******************....***..*********....*....*...
|
|
33
|
+
.*................*..***.*....******.....*....**.*
|
|
34
|
+
.*..****...***..*.*......*.....****....*****.....*
|
|
35
|
+
.*................*..*****......**..............**
|
|
36
|
+
.******************...****........................
|
|
37
|
+
..................................**********......
|
|
38
|
+
.*.....*********************..*...*........*..***.
|
|
39
|
+
*......*...................*.*....*.***...**...*..
|
|
40
|
+
...*...*.*..*.***.**..***..*...*..*.*..***.*...*..
|
|
41
|
+
.......*.****...*..*....*..*..*...*........*..***.
|
|
42
|
+
****...*.*..*......*.......*......**********......
|
|
43
|
+
.......*...*..*............*..*...................
|
|
44
|
+
.......*..**..**...****....*..*........*****..****
|
|
45
|
+
.......*.***..****....***..*....********...*....**
|
|
46
|
+
**.....*......******....*..*....*.......**.*.*...*
|
|
47
|
+
*......*.....*.......***...*.*..*.********.*.**...
|
|
48
|
+
*......*.*...**...*..***...*....**.****....*.****.
|
|
49
|
+
.......*.**.....***..***...*..*..*.*...*****......
|
|
50
|
+
...*...*...................*.*...**.****.......*..
|
|
51
|
+
****...*********************..*...***.......****..
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
string engine;
|
|
11
|
+
getline(cin, engine);
|
|
12
|
+
for (int i = 0; i < 3; i++) {
|
|
13
|
+
string row;
|
|
14
|
+
getline(cin, row);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
18
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
19
|
+
|
|
20
|
+
cout << "XOXO" << endl;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
String engine = in.nextLine();
|
|
10
|
+
for (int i = 0; i < 3; i++) {
|
|
11
|
+
String row = in.nextLine();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Write an answer using System.out.println()
|
|
15
|
+
// To debug: System.err.println("Debug messages...");
|
|
16
|
+
|
|
17
|
+
System.out.println("XOXO");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
$engine = stream_get_line(STDIN, 1 + 1, "\n");
|
|
3
|
+
for ($i = 0; $i < 3; $i++)
|
|
4
|
+
{
|
|
5
|
+
$row = stream_get_line(STDIN, 3 + 1, "\n");
|
|
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("XOXO\n");
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "medium/TicTacToeEngine",
|
|
3
|
+
"name": "Tic Tac Toe Engine",
|
|
4
|
+
"alphanumName": "TicTacToeEngine",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/tic-tac-toe-engine",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Winning Move",
|
|
9
|
+
"alphanumName": "WinningMove",
|
|
10
|
+
"file": "01 - Winning Move.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Blocking the Win",
|
|
14
|
+
"alphanumName": "BlockingTheWin",
|
|
15
|
+
"file": "02 - Blocking the Win.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Decisive Move",
|
|
19
|
+
"alphanumName": "DecisiveMove",
|
|
20
|
+
"file": "03 - Decisive Move.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Drawn",
|
|
24
|
+
"alphanumName": "Drawn",
|
|
25
|
+
"file": "04 - Drawn.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Optimal Win",
|
|
29
|
+
"alphanumName": "OptimalWin",
|
|
30
|
+
"file": "05 - Optimal Win.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Winning Position",
|
|
34
|
+
"alphanumName": "WinningPosition",
|
|
35
|
+
"file": "06 - Winning Position.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Lost",
|
|
39
|
+
"alphanumName": "Lost",
|
|
40
|
+
"file": "07 - Lost.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Hold the Draw",
|
|
44
|
+
"alphanumName": "HoldTheDraw",
|
|
45
|
+
"file": "08 - Hold the Draw.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Losing Position",
|
|
49
|
+
"alphanumName": "LosingPosition",
|
|
50
|
+
"file": "09 - Losing Position.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Free Reign",
|
|
54
|
+
"alphanumName": "FreeReign",
|
|
55
|
+
"file": "10 - Free Reign.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "Corner Strategy",
|
|
59
|
+
"alphanumName": "CornerStrategy",
|
|
60
|
+
"file": "11 - Corner Strategy.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Starting Position",
|
|
64
|
+
"alphanumName": "StartingPosition",
|
|
65
|
+
"file": "12 - Starting Position.txt"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|