@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
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 @@
|
|
|
1
|
+
0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0
|
|
@@ -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
|
|
@@ -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
|