@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.
Files changed (184) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/config/easy/LinesIntersections/code/CGCode.cpp +24 -0
  3. package/config/easy/LinesIntersections/code/CGCode.java +22 -0
  4. package/config/easy/LinesIntersections/code/CGCode.js +13 -0
  5. package/config/easy/LinesIntersections/code/CGCode.php +11 -0
  6. package/config/easy/LinesIntersections/code/CGCode.ts +13 -0
  7. package/config/easy/LinesIntersections/config.json +68 -0
  8. package/config/easy/LinesIntersections/input/01 - Triangle.txt +4 -0
  9. package/config/easy/LinesIntersections/input/02 - Two intersects.txt +3 -0
  10. package/config/easy/LinesIntersections/input/03 - Two parallel.txt +3 -0
  11. package/config/easy/LinesIntersections/input/04 - Square.txt +5 -0
  12. package/config/easy/LinesIntersections/input/05 - Square crossed.txt +7 -0
  13. package/config/easy/LinesIntersections/input/06 - One line.txt +2 -0
  14. package/config/easy/LinesIntersections/input/07 - Zero.txt +1 -0
  15. package/config/easy/LinesIntersections/input/08 - 10 lines.txt +11 -0
  16. package/config/easy/LinesIntersections/input/09 - 10 lines with maximum intersections.txt +11 -0
  17. package/config/easy/LinesIntersections/input/10 - 10 coincident lines.txt +11 -0
  18. package/config/easy/LinesIntersections/input/11 - All cases.txt +11 -0
  19. package/config/easy/LinesIntersections/input/12 - Star.txt +9 -0
  20. package/config/easy/LinesIntersections/output/01 - Triangle.txt +4 -0
  21. package/config/easy/LinesIntersections/output/02 - Two intersects.txt +2 -0
  22. package/config/easy/LinesIntersections/output/03 - Two parallel.txt +1 -0
  23. package/config/easy/LinesIntersections/output/04 - Square.txt +5 -0
  24. package/config/easy/LinesIntersections/output/05 - Square crossed.txt +6 -0
  25. package/config/easy/LinesIntersections/output/06 - One line.txt +1 -0
  26. package/config/easy/LinesIntersections/output/07 - Zero.txt +1 -0
  27. package/config/easy/LinesIntersections/output/08 - 10 lines.txt +39 -0
  28. package/config/easy/LinesIntersections/output/09 - 10 lines with maximum intersections.txt +46 -0
  29. package/config/easy/LinesIntersections/output/10 - 10 coincident lines.txt +1 -0
  30. package/config/easy/LinesIntersections/output/11 - All cases.txt +14 -0
  31. package/config/easy/LinesIntersections/output/12 - Star.txt +2 -0
  32. package/config/easy/SetProbabilitiesCardGame/code/CGCode.cpp +24 -0
  33. package/config/easy/SetProbabilitiesCardGame/code/CGCode.java +22 -0
  34. package/config/easy/SetProbabilitiesCardGame/code/CGCode.js +13 -0
  35. package/config/easy/SetProbabilitiesCardGame/code/CGCode.php +12 -0
  36. package/config/easy/SetProbabilitiesCardGame/code/CGCode.ts +13 -0
  37. package/config/easy/SetProbabilitiesCardGame/config.json +48 -0
  38. package/config/easy/SetProbabilitiesCardGame/input/01 - A simple start.txt +3 -0
  39. package/config/easy/SetProbabilitiesCardGame/input/02 - A few more cards.txt +6 -0
  40. package/config/easy/SetProbabilitiesCardGame/input/03 - And a few more....txt +9 -0
  41. package/config/easy/SetProbabilitiesCardGame/input/04 - A classic game of set.txt +13 -0
  42. package/config/easy/SetProbabilitiesCardGame/input/05 - Lots of cards.txt +16 -0
  43. package/config/easy/SetProbabilitiesCardGame/input/06 - Almost guaranteed.txt +20 -0
  44. package/config/easy/SetProbabilitiesCardGame/input/07 - No need to draw a card!.txt +8 -0
  45. package/config/easy/SetProbabilitiesCardGame/input/08 - I need to draw a card.txt +21 -0
  46. package/config/easy/SetProbabilitiesCardGame/output/01 - A simple start.txt +1 -0
  47. package/config/easy/SetProbabilitiesCardGame/output/02 - A few more cards.txt +1 -0
  48. package/config/easy/SetProbabilitiesCardGame/output/03 - And a few more....txt +1 -0
  49. package/config/easy/SetProbabilitiesCardGame/output/04 - A classic game of set.txt +1 -0
  50. package/config/easy/SetProbabilitiesCardGame/output/05 - Lots of cards.txt +1 -0
  51. package/config/easy/SetProbabilitiesCardGame/output/06 - Almost guaranteed.txt +1 -0
  52. package/config/easy/SetProbabilitiesCardGame/output/07 - No need to draw a card!.txt +1 -0
  53. package/config/easy/SetProbabilitiesCardGame/output/08 - I need to draw a card.txt +1 -0
  54. package/config/medium/ShortestPalindromicPath/code/CGCode.cpp +27 -0
  55. package/config/medium/ShortestPalindromicPath/code/CGCode.java +26 -0
  56. package/config/medium/ShortestPalindromicPath/code/CGCode.js +15 -0
  57. package/config/medium/ShortestPalindromicPath/code/CGCode.php +13 -0
  58. package/config/medium/ShortestPalindromicPath/code/CGCode.ts +15 -0
  59. package/config/medium/ShortestPalindromicPath/config.json +108 -0
  60. package/config/medium/ShortestPalindromicPath/input/01 - Example 1.txt +6 -0
  61. package/config/medium/ShortestPalindromicPath/input/02 - Example 2.txt +8 -0
  62. package/config/medium/ShortestPalindromicPath/input/03 - No Diagonal.txt +8 -0
  63. package/config/medium/ShortestPalindromicPath/input/04 - Palindromic Required.txt +8 -0
  64. package/config/medium/ShortestPalindromicPath/input/05 - All 26 Characters.txt +11 -0
  65. package/config/medium/ShortestPalindromicPath/input/06 - Smallest.txt +5 -0
  66. package/config/medium/ShortestPalindromicPath/input/07 - Adjacent Start and Goal.txt +9 -0
  67. package/config/medium/ShortestPalindromicPath/input/08 - Uniform.txt +9 -0
  68. package/config/medium/ShortestPalindromicPath/input/09 - Odd.txt +10 -0
  69. package/config/medium/ShortestPalindromicPath/input/10 - Even.txt +11 -0
  70. package/config/medium/ShortestPalindromicPath/input/11 - Multiple Paths.txt +7 -0
  71. package/config/medium/ShortestPalindromicPath/input/12 - Loop at Middle.txt +9 -0
  72. package/config/medium/ShortestPalindromicPath/input/13 - Loop at Start.txt +10 -0
  73. package/config/medium/ShortestPalindromicPath/input/14 - Loop at Goal.txt +11 -0
  74. package/config/medium/ShortestPalindromicPath/input/15 - Multiple Loops.txt +11 -0
  75. package/config/medium/ShortestPalindromicPath/input/16 - Long Sparse Snake.txt +53 -0
  76. package/config/medium/ShortestPalindromicPath/input/17 - Long Spiral.txt +53 -0
  77. package/config/medium/ShortestPalindromicPath/input/18 - Long Snake.txt +53 -0
  78. package/config/medium/ShortestPalindromicPath/input/19 - Many BFS Steps.txt +53 -0
  79. package/config/medium/ShortestPalindromicPath/input/20 - Many More BFS Steps.txt +53 -0
  80. package/config/medium/ShortestPalindromicPath/output/01 - Example 1.txt +1 -0
  81. package/config/medium/ShortestPalindromicPath/output/02 - Example 2.txt +1 -0
  82. package/config/medium/ShortestPalindromicPath/output/03 - No Diagonal.txt +1 -0
  83. package/config/medium/ShortestPalindromicPath/output/04 - Palindromic Required.txt +1 -0
  84. package/config/medium/ShortestPalindromicPath/output/05 - All 26 Characters.txt +1 -0
  85. package/config/medium/ShortestPalindromicPath/output/06 - Smallest.txt +1 -0
  86. package/config/medium/ShortestPalindromicPath/output/07 - Adjacent Start and Goal.txt +1 -0
  87. package/config/medium/ShortestPalindromicPath/output/08 - Uniform.txt +1 -0
  88. package/config/medium/ShortestPalindromicPath/output/09 - Odd.txt +1 -0
  89. package/config/medium/ShortestPalindromicPath/output/10 - Even.txt +1 -0
  90. package/config/medium/ShortestPalindromicPath/output/11 - Multiple Paths.txt +1 -0
  91. package/config/medium/ShortestPalindromicPath/output/12 - Loop at Middle.txt +1 -0
  92. package/config/medium/ShortestPalindromicPath/output/13 - Loop at Start.txt +1 -0
  93. package/config/medium/ShortestPalindromicPath/output/14 - Loop at Goal.txt +1 -0
  94. package/config/medium/ShortestPalindromicPath/output/15 - Multiple Loops.txt +1 -0
  95. package/config/medium/ShortestPalindromicPath/output/16 - Long Sparse Snake.txt +1 -0
  96. package/config/medium/ShortestPalindromicPath/output/17 - Long Spiral.txt +1 -0
  97. package/config/medium/ShortestPalindromicPath/output/18 - Long Snake.txt +1 -0
  98. package/config/medium/ShortestPalindromicPath/output/19 - Many BFS Steps.txt +1 -0
  99. package/config/medium/ShortestPalindromicPath/output/20 - Many More BFS Steps.txt +1 -0
  100. package/config/medium/Snowflakes/code/CGCode.cpp +23 -0
  101. package/config/medium/Snowflakes/code/CGCode.java +24 -0
  102. package/config/medium/Snowflakes/code/CGCode.js +12 -0
  103. package/config/medium/Snowflakes/code/CGCode.php +12 -0
  104. package/config/medium/Snowflakes/code/CGCode.ts +12 -0
  105. package/config/medium/Snowflakes/config.json +128 -0
  106. package/config/medium/Snowflakes/input/01 - Single Snowflake.txt +4 -0
  107. package/config/medium/Snowflakes/input/02 - Two Snowflakes.txt +6 -0
  108. package/config/medium/Snowflakes/input/03 - Simple Unique.txt +6 -0
  109. package/config/medium/Snowflakes/input/04 - Simple Rotation.txt +5 -0
  110. package/config/medium/Snowflakes/input/05 - Simple Flipped.txt +9 -0
  111. package/config/medium/Snowflakes/input/06 - All Rotations.txt +8 -0
  112. package/config/medium/Snowflakes/input/07 - All Orientations.txt +4 -0
  113. package/config/medium/Snowflakes/input/08 - Big Flake.txt +6 -0
  114. package/config/medium/Snowflakes/input/09 - Empty Sky.txt +31 -0
  115. package/config/medium/Snowflakes/input/10 - Micro-Lens.txt +2 -0
  116. package/config/medium/Snowflakes/input/11 - Micro-Lens 2.txt +2 -0
  117. package/config/medium/Snowflakes/input/12 - Single Flakes.txt +9 -0
  118. package/config/medium/Snowflakes/input/13 - Myth Busted.txt +21 -0
  119. package/config/medium/Snowflakes/input/14 - Myth Confirmed.txt +9 -0
  120. package/config/medium/Snowflakes/input/15 - Test 15.txt +49 -0
  121. package/config/medium/Snowflakes/input/16 - Test 16.txt +49 -0
  122. package/config/medium/Snowflakes/input/17 - Test 17.txt +51 -0
  123. package/config/medium/Snowflakes/input/18 - All But One.txt +31 -0
  124. package/config/medium/Snowflakes/input/19 - Random.txt +51 -0
  125. package/config/medium/Snowflakes/input/20 - Random 2.txt +21 -0
  126. package/config/medium/Snowflakes/input/21 - Random 3.txt +51 -0
  127. package/config/medium/Snowflakes/input/22 - Random 4.txt +51 -0
  128. package/config/medium/Snowflakes/input/23 - Many Hollow.txt +31 -0
  129. package/config/medium/Snowflakes/input/24 - Flakes in Flakes.txt +51 -0
  130. package/config/medium/Snowflakes/output/01 - Single Snowflake.txt +2 -0
  131. package/config/medium/Snowflakes/output/02 - Two Snowflakes.txt +2 -0
  132. package/config/medium/Snowflakes/output/03 - Simple Unique.txt +2 -0
  133. package/config/medium/Snowflakes/output/04 - Simple Rotation.txt +2 -0
  134. package/config/medium/Snowflakes/output/05 - Simple Flipped.txt +2 -0
  135. package/config/medium/Snowflakes/output/06 - All Rotations.txt +2 -0
  136. package/config/medium/Snowflakes/output/07 - All Orientations.txt +2 -0
  137. package/config/medium/Snowflakes/output/08 - Big Flake.txt +2 -0
  138. package/config/medium/Snowflakes/output/09 - Empty Sky.txt +2 -0
  139. package/config/medium/Snowflakes/output/10 - Micro-Lens.txt +2 -0
  140. package/config/medium/Snowflakes/output/11 - Micro-Lens 2.txt +2 -0
  141. package/config/medium/Snowflakes/output/12 - Single Flakes.txt +2 -0
  142. package/config/medium/Snowflakes/output/13 - Myth Busted.txt +2 -0
  143. package/config/medium/Snowflakes/output/14 - Myth Confirmed.txt +2 -0
  144. package/config/medium/Snowflakes/output/15 - Test 15.txt +2 -0
  145. package/config/medium/Snowflakes/output/16 - Test 16.txt +2 -0
  146. package/config/medium/Snowflakes/output/17 - Test 17.txt +2 -0
  147. package/config/medium/Snowflakes/output/18 - All But One.txt +2 -0
  148. package/config/medium/Snowflakes/output/19 - Random.txt +2 -0
  149. package/config/medium/Snowflakes/output/20 - Random 2.txt +2 -0
  150. package/config/medium/Snowflakes/output/21 - Random 3.txt +2 -0
  151. package/config/medium/Snowflakes/output/22 - Random 4.txt +2 -0
  152. package/config/medium/Snowflakes/output/23 - Many Hollow.txt +2 -0
  153. package/config/medium/Snowflakes/output/24 - Flakes in Flakes.txt +2 -0
  154. package/config/medium/TicTacToeEngine/code/CGCode.cpp +21 -0
  155. package/config/medium/TicTacToeEngine/code/CGCode.java +19 -0
  156. package/config/medium/TicTacToeEngine/code/CGCode.js +9 -0
  157. package/config/medium/TicTacToeEngine/code/CGCode.php +11 -0
  158. package/config/medium/TicTacToeEngine/code/CGCode.ts +9 -0
  159. package/config/medium/TicTacToeEngine/config.json +68 -0
  160. package/config/medium/TicTacToeEngine/input/01 - Winning Move.txt +4 -0
  161. package/config/medium/TicTacToeEngine/input/02 - Blocking the Win.txt +4 -0
  162. package/config/medium/TicTacToeEngine/input/03 - Decisive Move.txt +4 -0
  163. package/config/medium/TicTacToeEngine/input/04 - Drawn.txt +4 -0
  164. package/config/medium/TicTacToeEngine/input/05 - Optimal Win.txt +4 -0
  165. package/config/medium/TicTacToeEngine/input/06 - Winning Position.txt +4 -0
  166. package/config/medium/TicTacToeEngine/input/07 - Lost.txt +4 -0
  167. package/config/medium/TicTacToeEngine/input/08 - Hold the Draw.txt +4 -0
  168. package/config/medium/TicTacToeEngine/input/09 - Losing Position.txt +4 -0
  169. package/config/medium/TicTacToeEngine/input/10 - Free Reign.txt +4 -0
  170. package/config/medium/TicTacToeEngine/input/11 - Corner Strategy.txt +4 -0
  171. package/config/medium/TicTacToeEngine/input/12 - Starting Position.txt +4 -0
  172. package/config/medium/TicTacToeEngine/output/01 - Winning Move.txt +3 -0
  173. package/config/medium/TicTacToeEngine/output/02 - Blocking the Win.txt +3 -0
  174. package/config/medium/TicTacToeEngine/output/03 - Decisive Move.txt +3 -0
  175. package/config/medium/TicTacToeEngine/output/04 - Drawn.txt +3 -0
  176. package/config/medium/TicTacToeEngine/output/05 - Optimal Win.txt +3 -0
  177. package/config/medium/TicTacToeEngine/output/06 - Winning Position.txt +3 -0
  178. package/config/medium/TicTacToeEngine/output/07 - Lost.txt +3 -0
  179. package/config/medium/TicTacToeEngine/output/08 - Hold the Draw.txt +3 -0
  180. package/config/medium/TicTacToeEngine/output/09 - Losing Position.txt +3 -0
  181. package/config/medium/TicTacToeEngine/output/10 - Free Reign.txt +3 -0
  182. package/config/medium/TicTacToeEngine/output/11 - Corner Strategy.txt +3 -0
  183. package/config/medium/TicTacToeEngine/output/12 - Starting Position.txt +3 -0
  184. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ 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.22.0] - 2025-12-31
8
+ ### Added
9
+ - configuration for "Lines Intersections".
10
+ - configuration for "Tic Tac Toe Engine".
11
+ - configuration for "Shortest Palindromic Path".
12
+ - configuration for "Snowflakes".
13
+ - configuration for "Set Probabilities (Card Game)".
14
+
7
15
  ## [1.21.0] - 2025-11-30
8
16
  ### Added
9
17
  - configuration for "Gauss and the Stolen Numbers".
@@ -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,4 @@
1
+ 3
2
+ -6 -5 12 12
3
+ 4 -44 9 19
4
+ 4 -44 50 19
@@ -0,0 +1,3 @@
1
+ 2
2
+ 4 20 20 4
3
+ 0 0 0 50
@@ -0,0 +1,3 @@
1
+ 2
2
+ 1 1 20 20
3
+ 16 0 20 4
@@ -0,0 +1,5 @@
1
+ 4
2
+ 0 0 4 0
3
+ 4 0 4 4
4
+ 4 4 0 4
5
+ 0 4 0 0
@@ -0,0 +1,7 @@
1
+ 6
2
+ 2 3 12 3
3
+ 2 13 12 13
4
+ 2 3 2 13
5
+ 12 3 12 13
6
+ 2 3 12 13
7
+ 2 13 12 3
@@ -0,0 +1,2 @@
1
+ 1
2
+ 45 23 12 -9
@@ -0,0 +1,11 @@
1
+ 10
2
+ 0 0 20 20
3
+ 0 20 10 40
4
+ 100 60 10 20
5
+ 0 10 20 10
6
+ 0 1 20 21
7
+ 0 2 20 22
8
+ 0 19 20 -1
9
+ 5 0 5 20
10
+ 0 11 20 11
11
+ 15 0 15 20
@@ -0,0 +1,11 @@
1
+ 10
2
+ -9 -80 -70 -65
3
+ -80 10 -60 85
4
+ -50 -9 -30 -75
5
+ -40 60 -2 45
6
+ -30 -5 -15 -30
7
+ 10 7 30 55
8
+ 20 -6 40 -45
9
+ 30 95 5 70
10
+ 60 -85 8 -60
11
+ 70 4 90 25
@@ -0,0 +1,11 @@
1
+ 10
2
+ -6 -8 -1 2
3
+ -5 -6 2 8
4
+ 0 4 -4 -4
5
+ -10 -16 10 24
6
+ -24 -44 -22 -40
7
+ 38 80 39 82
8
+ 48 100 -52 -100
9
+ -40 -76 -52 -100
10
+ -1 2 48 100
11
+ 0 4 -2 0
@@ -0,0 +1,11 @@
1
+ 10
2
+ -3 0 -3 5
3
+ -3 -8 -3 -9
4
+ -2 2 2 3
5
+ -3 -2 1 -1
6
+ -8 7 12 -1
7
+ -18 11 27 -7
8
+ 0 0 0 1
9
+ 0 -1 0 -2
10
+ 0 0 1 0
11
+ -1 0 -2 0
@@ -0,0 +1,9 @@
1
+ 8
2
+ 0 1 0 -1
3
+ -1 0 1 0
4
+ 2 2 -2 -2
5
+ -2 2 2 -2
6
+ -3 1 3 -1
7
+ -3 -1 3 1
8
+ -1 3 1 -3
9
+ -1 -3 1 3
@@ -0,0 +1,4 @@
1
+ 3
2
+ 4.000 -44.000
3
+ 8.156 8.370
4
+ 117.955 112.068
@@ -0,0 +1,5 @@
1
+ 4
2
+ 0.000 0.000
3
+ 0.000 4.000
4
+ 4.000 0.000
5
+ 4.000 4.000
@@ -0,0 +1,6 @@
1
+ 5
2
+ 2.000 3.000
3
+ 2.000 13.000
4
+ 7.000 8.000
5
+ 12.000 3.000
6
+ 12.000 13.000
@@ -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,14 @@
1
+ 13
2
+ -10.000 0.000
3
+ -3.000 -2.000
4
+ -3.000 0.000
5
+ -3.000 1.750
6
+ -3.000 5.000
7
+ 0.000 -1.250
8
+ 0.000 0.000
9
+ 0.000 2.500
10
+ 0.000 3.800
11
+ 2.000 3.000
12
+ 5.000 0.000
13
+ 7.769 0.692
14
+ 9.500 0.000
@@ -0,0 +1,2 @@
1
+ 1
2
+ 0.000 0.000
@@ -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,3 @@
1
+ 2
2
+ 2 SOLID RED SQUIGGLE
3
+ 1 OUTLINED GREEN SQUIGGLE
@@ -0,0 +1,6 @@
1
+ 5
2
+ 3 STRIPED PURPLE OVAL
3
+ 1 OUTLINED GREEN OVAL
4
+ 2 STRIPED RED DIAMOND
5
+ 3 STRIPED RED DIAMOND
6
+ 2 OUTLINED PURPLE SQUIGGLE
@@ -0,0 +1,9 @@
1
+ 8
2
+ 1 STRIPED GREEN OVAL
3
+ 2 OUTLINED PURPLE OVAL
4
+ 2 STRIPED GREEN SQUIGGLE
5
+ 3 SOLID PURPLE DIAMOND
6
+ 1 SOLID RED OVAL
7
+ 3 OUTLINED GREEN SQUIGGLE
8
+ 2 STRIPED RED DIAMOND
9
+ 3 OUTLINED RED DIAMOND
@@ -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
@@ -0,0 +1,8 @@
1
+ 7
2
+ 1 SOLID RED SQUIGGLE
3
+ 2 OUTLINED PURPLE OVAL
4
+ 3 OUTLINED PURPLE DIAMOND
5
+ 1 STRIPED GREEN DIAMOND
6
+ 2 SOLID RED OVAL
7
+ 2 STRIPED GREEN OVAL
8
+ 3 SOLID RED SQUIGGLE
@@ -0,0 +1,21 @@
1
+ 20
2
+ 2 STRIPED GREEN SQUIGGLE
3
+ 1 SOLID GREEN SQUIGGLE
4
+ 1 STRIPED RED SQUIGGLE
5
+ 3 SOLID RED SQUIGGLE
6
+ 3 STRIPED PURPLE DIAMOND
7
+ 3 STRIPED GREEN OVAL
8
+ 1 SOLID PURPLE DIAMOND
9
+ 1 STRIPED PURPLE SQUIGGLE
10
+ 3 OUTLINED RED SQUIGGLE
11
+ 3 OUTLINED GREEN DIAMOND
12
+ 2 STRIPED GREEN DIAMOND
13
+ 3 SOLID GREEN DIAMOND
14
+ 1 OUTLINED PURPLE DIAMOND
15
+ 1 OUTLINED RED DIAMOND
16
+ 3 STRIPED RED DIAMOND
17
+ 3 OUTLINED PURPLE SQUIGGLE
18
+ 1 STRIPED GREEN OVAL
19
+ 1 OUTLINED GREEN SQUIGGLE
20
+ 3 SOLID PURPLE SQUIGGLE
21
+ 1 SOLID RED DIAMOND