@cyrilverloop/codingame-configuration 1.23.0 → 1.24.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 +7 -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/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/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/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/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
51
|
|
2
|
+
10D
|
|
3
|
+
6H
|
|
4
|
+
10C
|
|
5
|
+
AD
|
|
6
|
+
7D
|
|
7
|
+
9S
|
|
8
|
+
3H
|
|
9
|
+
2D
|
|
10
|
+
3S
|
|
11
|
+
8S
|
|
12
|
+
8D
|
|
13
|
+
JS
|
|
14
|
+
KH
|
|
15
|
+
4S
|
|
16
|
+
QD
|
|
17
|
+
QH
|
|
18
|
+
AH
|
|
19
|
+
6C
|
|
20
|
+
JC
|
|
21
|
+
5S
|
|
22
|
+
KD
|
|
23
|
+
6D
|
|
24
|
+
8H
|
|
25
|
+
4C
|
|
26
|
+
5C
|
|
27
|
+
4H
|
|
28
|
+
2H
|
|
29
|
+
JD
|
|
30
|
+
10H
|
|
31
|
+
9H
|
|
32
|
+
9C
|
|
33
|
+
2C
|
|
34
|
+
KC
|
|
35
|
+
2S
|
|
36
|
+
JH
|
|
37
|
+
6S
|
|
38
|
+
7S
|
|
39
|
+
5D
|
|
40
|
+
AC
|
|
41
|
+
9D
|
|
42
|
+
AS
|
|
43
|
+
7C
|
|
44
|
+
8C
|
|
45
|
+
QS
|
|
46
|
+
QC
|
|
47
|
+
5H
|
|
48
|
+
3C
|
|
49
|
+
10S
|
|
50
|
+
4D
|
|
51
|
+
7H
|
|
52
|
+
KS
|
|
53
|
+
1
|
|
54
|
+
3D
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
26
|
|
2
|
+
7H
|
|
3
|
+
KS
|
|
4
|
+
5C
|
|
5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C
|
|
43
|
+
8H
|
|
44
|
+
8C
|
|
45
|
+
9D
|
|
46
|
+
9H
|
|
47
|
+
10H
|
|
48
|
+
10D
|
|
49
|
+
JS
|
|
50
|
+
JD
|
|
51
|
+
QS
|
|
52
|
+
QC
|
|
53
|
+
KH
|
|
54
|
+
KC
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int e;
|
|
11
|
+
int f;
|
|
12
|
+
int s;
|
|
13
|
+
int b;
|
|
14
|
+
cin >> e >> f >> s >> b; cin.ignore();
|
|
15
|
+
|
|
16
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
17
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
18
|
+
|
|
19
|
+
cout << "1 Cake" << endl;
|
|
20
|
+
}
|
|
@@ -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
|
+
int e = in.nextInt();
|
|
10
|
+
int f = in.nextInt();
|
|
11
|
+
int s = in.nextInt();
|
|
12
|
+
int b = in.nextInt();
|
|
13
|
+
|
|
14
|
+
// Write an answer using System.out.println()
|
|
15
|
+
// To debug: System.err.println("Debug messages...");
|
|
16
|
+
|
|
17
|
+
System.out.println("1 Cake");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var inputs = readline().split(' ');
|
|
2
|
+
const e = parseInt(inputs[0]);
|
|
3
|
+
const f = parseInt(inputs[1]);
|
|
4
|
+
const s = parseInt(inputs[2]);
|
|
5
|
+
const b = parseInt(inputs[3]);
|
|
6
|
+
|
|
7
|
+
// Write an answer using console.log()
|
|
8
|
+
// To debug: console.error('Debug messages...');
|
|
9
|
+
|
|
10
|
+
console.log('1 Cake');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var inputs: string[] = readline().split(' ');
|
|
2
|
+
const e: number = parseInt(inputs[0]);
|
|
3
|
+
const f: number = parseInt(inputs[1]);
|
|
4
|
+
const s: number = parseInt(inputs[2]);
|
|
5
|
+
const b: number = parseInt(inputs[3]);
|
|
6
|
+
|
|
7
|
+
// Write an answer using console.log()
|
|
8
|
+
// To debug: console.error('Debug messages...');
|
|
9
|
+
|
|
10
|
+
console.log('1 Cake');
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/WhatADessert",
|
|
3
|
+
"name": "What a dessert!",
|
|
4
|
+
"alphanumName": "WhatADessert",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/what-a-dessert",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Test 1",
|
|
9
|
+
"alphanumName": "test1",
|
|
10
|
+
"file": "01 - test 1.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Test 2",
|
|
14
|
+
"alphanumName": "test2",
|
|
15
|
+
"file": "02 - test 2.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Test 3",
|
|
19
|
+
"alphanumName": "test3",
|
|
20
|
+
"file": "03 - test 3.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Test 4",
|
|
24
|
+
"alphanumName": "test4",
|
|
25
|
+
"file": "04 - test 4.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Test 5",
|
|
29
|
+
"alphanumName": "test5",
|
|
30
|
+
"file": "05 - test 5.txt"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6 550 700 200
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12 800 600 900
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12 800 500 500
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12 800 600 600
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8 600 600 600
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4 Cookie
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5 Muffin
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4 Cake
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4 Cake
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4 Cookie
|
|
@@ -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');
|