@cyrilverloop/codingame-configuration 1.26.0 → 1.27.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/CistercianAddition/code/CGCode.cpp +23 -0
- package/config/easy/CistercianAddition/code/CGCode.java +21 -0
- package/config/easy/CistercianAddition/code/CGCode.js +11 -0
- package/config/easy/CistercianAddition/code/CGCode.php +14 -0
- package/config/easy/CistercianAddition/code/CGCode.ts +11 -0
- package/config/easy/CistercianAddition/config.json +68 -0
- package/config/easy/CistercianAddition/input/01 - Units.txt +10 -0
- package/config/easy/CistercianAddition/input/02 - Tens.txt +10 -0
- package/config/easy/CistercianAddition/input/03 - Hundreds.txt +10 -0
- package/config/easy/CistercianAddition/input/04 - Thousands.txt +10 -0
- package/config/easy/CistercianAddition/input/05 - Limit.txt +10 -0
- package/config/easy/CistercianAddition/input/06 - Missing tens.txt +10 -0
- package/config/easy/CistercianAddition/input/07 - Missing numbers.txt +10 -0
- package/config/easy/CistercianAddition/input/08 - Change of multiples.txt +10 -0
- package/config/easy/CistercianAddition/input/09 - Basic symbols.txt +10 -0
- package/config/easy/CistercianAddition/input/10 - Repetitive numbers.txt +10 -0
- package/config/easy/CistercianAddition/input/11 - Random number 1.txt +10 -0
- package/config/easy/CistercianAddition/input/12 - Random number 2.txt +10 -0
- package/config/easy/CistercianAddition/output/01 - Units.txt +5 -0
- package/config/easy/CistercianAddition/output/02 - Tens.txt +5 -0
- package/config/easy/CistercianAddition/output/03 - Hundreds.txt +5 -0
- package/config/easy/CistercianAddition/output/04 - Thousands.txt +5 -0
- package/config/easy/CistercianAddition/output/05 - Limit.txt +5 -0
- package/config/easy/CistercianAddition/output/06 - Missing tens.txt +5 -0
- package/config/easy/CistercianAddition/output/07 - Missing numbers.txt +5 -0
- package/config/easy/CistercianAddition/output/08 - Change of multiples.txt +5 -0
- package/config/easy/CistercianAddition/output/09 - Basic symbols.txt +5 -0
- package/config/easy/CistercianAddition/output/10 - Repetitive numbers.txt +5 -0
- package/config/easy/CistercianAddition/output/11 - Random number 1.txt +5 -0
- package/config/easy/CistercianAddition/output/12 - Random number 2.txt +5 -0
- package/config/easy/JumpTheQueue/code/CGCode.cpp +26 -0
- package/config/easy/JumpTheQueue/code/CGCode.java +26 -0
- package/config/easy/JumpTheQueue/code/CGCode.js +15 -0
- package/config/easy/JumpTheQueue/code/CGCode.php +16 -0
- package/config/easy/JumpTheQueue/code/CGCode.ts +15 -0
- package/config/easy/JumpTheQueue/config.json +48 -0
- package/config/easy/JumpTheQueue/input/01 - Example.txt +4 -0
- package/config/easy/JumpTheQueue/input/02 - Incomplete dequeue.txt +6 -0
- package/config/easy/JumpTheQueue/input/03 - Interlacing events.txt +6 -0
- package/config/easy/JumpTheQueue/input/04 - Rejoining the queue.txt +10 -0
- package/config/easy/JumpTheQueue/input/05 - Busy queue.txt +14 -0
- package/config/easy/JumpTheQueue/input/06 - Bigger friend groups.txt +5 -0
- package/config/easy/JumpTheQueue/input/07 - Large pack of lone wolves.txt +4 -0
- package/config/easy/JumpTheQueue/input/08 - Long queue.txt +22 -0
- package/config/easy/JumpTheQueue/output/01 - Example.txt +7 -0
- package/config/easy/JumpTheQueue/output/02 - Incomplete dequeue.txt +14 -0
- package/config/easy/JumpTheQueue/output/03 - Interlacing events.txt +18 -0
- package/config/easy/JumpTheQueue/output/04 - Rejoining the queue.txt +29 -0
- package/config/easy/JumpTheQueue/output/05 - Busy queue.txt +47 -0
- package/config/easy/JumpTheQueue/output/06 - Bigger friend groups.txt +64 -0
- package/config/easy/JumpTheQueue/output/07 - Large pack of lone wolves.txt +105 -0
- package/config/easy/JumpTheQueue/output/08 - Long queue.txt +160 -0
- package/config/easy/LeapOfSheep/code/CGCode.cpp +21 -0
- package/config/easy/LeapOfSheep/code/CGCode.java +19 -0
- package/config/easy/LeapOfSheep/code/CGCode.js +10 -0
- package/config/easy/LeapOfSheep/code/CGCode.php +12 -0
- package/config/easy/LeapOfSheep/code/CGCode.ts +10 -0
- package/config/easy/LeapOfSheep/config.json +88 -0
- package/config/easy/LeapOfSheep/input/01 - Example.txt +2 -0
- package/config/easy/LeapOfSheep/input/02 - Highest is not best.txt +2 -0
- package/config/easy/LeapOfSheep/input/03 - Only 1 valid.txt +2 -0
- package/config/easy/LeapOfSheep/input/04 - Increasing then decreasing.txt +2 -0
- package/config/easy/LeapOfSheep/input/05 - Hills.txt +2 -0
- package/config/easy/LeapOfSheep/input/06 - Symmetric field.txt +2 -0
- package/config/easy/LeapOfSheep/input/07 - Fluctuations.txt +2 -0
- package/config/easy/LeapOfSheep/input/08 - Small step.txt +2 -0
- package/config/easy/LeapOfSheep/input/09 - Big heights.txt +2 -0
- package/config/easy/LeapOfSheep/input/10 - So high!.txt +2 -0
- package/config/easy/LeapOfSheep/input/11 - Giant leap.txt +2 -0
- package/config/easy/LeapOfSheep/input/12 - Bigger.txt +2 -0
- package/config/easy/LeapOfSheep/input/13 - Lots of similar.txt +2 -0
- package/config/easy/LeapOfSheep/input/14 - Leap of faith.txt +2 -0
- package/config/easy/LeapOfSheep/input/15 - Similar heights.txt +2 -0
- package/config/easy/LeapOfSheep/input/16 - So many piles.txt +2 -0
- package/config/easy/LeapOfSheep/output/01 - Example.txt +1 -0
- package/config/easy/LeapOfSheep/output/02 - Highest is not best.txt +1 -0
- package/config/easy/LeapOfSheep/output/03 - Only 1 valid.txt +1 -0
- package/config/easy/LeapOfSheep/output/04 - Increasing then decreasing.txt +1 -0
- package/config/easy/LeapOfSheep/output/05 - Hills.txt +1 -0
- package/config/easy/LeapOfSheep/output/06 - Symmetric field.txt +1 -0
- package/config/easy/LeapOfSheep/output/07 - Fluctuations.txt +1 -0
- package/config/easy/LeapOfSheep/output/08 - Small step.txt +1 -0
- package/config/easy/LeapOfSheep/output/09 - Big heights.txt +1 -0
- package/config/easy/LeapOfSheep/output/10 - So high!.txt +1 -0
- package/config/easy/LeapOfSheep/output/11 - Giant leap.txt +1 -0
- package/config/easy/LeapOfSheep/output/12 - Bigger.txt +1 -0
- package/config/easy/LeapOfSheep/output/13 - Lots of similar.txt +1 -0
- package/config/easy/LeapOfSheep/output/14 - Leap of faith.txt +1 -0
- package/config/easy/LeapOfSheep/output/15 - Similar heights.txt +1 -0
- package/config/easy/LeapOfSheep/output/16 - So many piles.txt +1 -0
- package/config/hard/BuildADie/code/CGCode.cpp +30 -0
- package/config/hard/BuildADie/code/CGCode.java +31 -0
- package/config/hard/BuildADie/code/CGCode.js +16 -0
- package/config/hard/BuildADie/code/CGCode.php +17 -0
- package/config/hard/BuildADie/code/CGCode.ts +16 -0
- package/config/hard/BuildADie/config.json +133 -0
- package/config/hard/BuildADie/input/01 - Example.txt +12 -0
- package/config/hard/BuildADie/input/02 - Corners.txt +11 -0
- package/config/hard/BuildADie/input/03 - Side Profile.txt +10 -0
- package/config/hard/BuildADie/input/04 - Front Face.txt +11 -0
- package/config/hard/BuildADie/input/05 - Mix.txt +12 -0
- package/config/hard/BuildADie/input/06 - Repeat.txt +11 -0
- package/config/hard/BuildADie/input/07 - Cryptic.txt +12 -0
- package/config/hard/BuildADie/input/08 - Missing Images.txt +11 -0
- package/config/hard/BuildADie/input/09 - No Solution.txt +12 -0
- package/config/hard/BuildADie/input/10 - Multiple.txt +12 -0
- package/config/hard/BuildADie/input/11 - More.txt +12 -0
- package/config/hard/BuildADie/input/12 - Duplicate.txt +13 -0
- package/config/hard/BuildADie/input/13 - Identical.txt +11 -0
- package/config/hard/BuildADie/input/14 - Net 1.txt +11 -0
- package/config/hard/BuildADie/input/15 - Net 2.txt +11 -0
- package/config/hard/BuildADie/input/16 - Net 3.txt +11 -0
- package/config/hard/BuildADie/input/17 - Net 4.txt +11 -0
- package/config/hard/BuildADie/input/18 - Net 5.txt +12 -0
- package/config/hard/BuildADie/input/19 - Net 6.txt +11 -0
- package/config/hard/BuildADie/input/20 - Net 7.txt +12 -0
- package/config/hard/BuildADie/input/21 - Net 8.txt +12 -0
- package/config/hard/BuildADie/input/22 - Net 9.txt +11 -0
- package/config/hard/BuildADie/input/23 - Net 10.txt +12 -0
- package/config/hard/BuildADie/input/24 - Net 11.txt +13 -0
- package/config/hard/BuildADie/input/25 - Nothing.txt +12 -0
- package/config/hard/BuildADie/output/01 - Example.txt +5 -0
- package/config/hard/BuildADie/output/02 - Corners.txt +4 -0
- package/config/hard/BuildADie/output/03 - Side Profile.txt +3 -0
- package/config/hard/BuildADie/output/04 - Front Face.txt +4 -0
- package/config/hard/BuildADie/output/05 - Mix.txt +17 -0
- package/config/hard/BuildADie/output/06 - Repeat.txt +19 -0
- package/config/hard/BuildADie/output/07 - Cryptic.txt +97 -0
- package/config/hard/BuildADie/output/08 - Missing Images.txt +91 -0
- package/config/hard/BuildADie/output/09 - No Solution.txt +1 -0
- package/config/hard/BuildADie/output/10 - Multiple.txt +25 -0
- package/config/hard/BuildADie/output/11 - More.txt +13 -0
- package/config/hard/BuildADie/output/12 - Duplicate.txt +6 -0
- package/config/hard/BuildADie/output/13 - Identical.txt +4 -0
- package/config/hard/BuildADie/output/14 - Net 1.txt +10 -0
- package/config/hard/BuildADie/output/15 - Net 2.txt +10 -0
- package/config/hard/BuildADie/output/16 - Net 3.txt +10 -0
- package/config/hard/BuildADie/output/17 - Net 4.txt +13 -0
- package/config/hard/BuildADie/output/18 - Net 5.txt +61 -0
- package/config/hard/BuildADie/output/19 - Net 6.txt +13 -0
- package/config/hard/BuildADie/output/20 - Net 7.txt +13 -0
- package/config/hard/BuildADie/output/21 - Net 8.txt +9 -0
- package/config/hard/BuildADie/output/22 - Net 9.txt +25 -0
- package/config/hard/BuildADie/output/23 - Net 10.txt +61 -0
- package/config/hard/BuildADie/output/24 - Net 11.txt +11 -0
- package/config/hard/BuildADie/output/25 - Nothing.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/code/CGCode.cpp +23 -0
- package/config/medium/OrbitalLogisticsExactLoad/code/CGCode.java +21 -0
- package/config/medium/OrbitalLogisticsExactLoad/code/CGCode.js +13 -0
- package/config/medium/OrbitalLogisticsExactLoad/code/CGCode.php +11 -0
- package/config/medium/OrbitalLogisticsExactLoad/code/CGCode.ts +13 -0
- package/config/medium/OrbitalLogisticsExactLoad/config.json +73 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/01 - Baby/342/200/231s First Cargo Run.txt" +5 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/02 - The Cargo Bay Says No.txt +5 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/03 - All Hands on Deck.txt +8 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/04 - Nothing Fits Today.txt +11 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/05 - Many Roads to the Same Dock.txt +6 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/06 - One Perfect Container.txt +14 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/07 - Bigger Beats Better.txt +18 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/08 - Many Roads to Orbit.txt +25 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/09 - Insufficient Payload.txt +31 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/10 - Tight Schedule.txt +33 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/11 - Full Capacity Pressure.txt +41 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/12 - Deep Space Logistics.txt +41 -0
- package/config/medium/OrbitalLogisticsExactLoad/input/13 - Mission Constraints.txt +41 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/01 - Baby/342/200/231s First Cargo Run.txt" +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/02 - The Cargo Bay Says No.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/03 - All Hands on Deck.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/04 - Nothing Fits Today.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/05 - Many Roads to the Same Dock.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/06 - One Perfect Container.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/07 - Bigger Beats Better.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/08 - Many Roads to Orbit.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/09 - Insufficient Payload.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/10 - Tight Schedule.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/11 - Full Capacity Pressure.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/12 - Deep Space Logistics.txt +1 -0
- package/config/medium/OrbitalLogisticsExactLoad/output/13 - Mission Constraints.txt +1 -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.27.0] - 2026-05-31
|
|
8
|
+
### Added
|
|
9
|
+
- configuration for "Build-A-Die".
|
|
10
|
+
- configuration for "Jump the Queue".
|
|
11
|
+
- configuration for "Leap of sheep".
|
|
12
|
+
- configuration for "Cistercian addition".
|
|
13
|
+
- configuration for "Orbital Logistics: Exact Load".
|
|
14
|
+
|
|
7
15
|
## [1.26.0] - 2026-04-30
|
|
8
16
|
### Added
|
|
9
17
|
- configuration for "Pyramid Stacker".
|
|
@@ -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
|
+
for (int i = 0; i < 5; i++) {
|
|
11
|
+
string num1_line;
|
|
12
|
+
getline(cin, num1_line);
|
|
13
|
+
}
|
|
14
|
+
for (int i = 0; i < 5; i++) {
|
|
15
|
+
string num2_line;
|
|
16
|
+
getline(cin, num2_line);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
20
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
21
|
+
|
|
22
|
+
cout << "result" << 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
|
+
for (int i = 0; i < 5; i++) {
|
|
10
|
+
String num1Line = in.nextLine();
|
|
11
|
+
}
|
|
12
|
+
for (int i = 0; i < 5; i++) {
|
|
13
|
+
String num2Line = in.nextLine();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Write an answer using System.out.println()
|
|
17
|
+
// To debug: System.err.println("Debug messages...");
|
|
18
|
+
|
|
19
|
+
System.out.println("result");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
for ($i = 0; $i < 5; $i++)
|
|
3
|
+
{
|
|
4
|
+
$num1Line = stream_get_line(STDIN, 5 + 1, "\n");
|
|
5
|
+
}
|
|
6
|
+
for ($i = 0; $i < 5; $i++)
|
|
7
|
+
{
|
|
8
|
+
$num2Line = stream_get_line(STDIN, 5 + 1, "\n");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
12
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
13
|
+
|
|
14
|
+
echo("result\n");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
for (let i = 0; i < 5; i++) {
|
|
2
|
+
const num1Line: string = readline();
|
|
3
|
+
}
|
|
4
|
+
for (let i = 0; i < 5; i++) {
|
|
5
|
+
const num2Line: string = readline();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Write an answer using console.log()
|
|
9
|
+
// To debug: console.error('Debug messages...');
|
|
10
|
+
|
|
11
|
+
console.log('result');
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/CistercianAddition",
|
|
3
|
+
"name": "Cistercian addition",
|
|
4
|
+
"alphanumName": "CistercianAddition",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/cistercian-addition",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Units",
|
|
9
|
+
"alphanumName": "Units",
|
|
10
|
+
"file": "01 - Units.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Tens",
|
|
14
|
+
"alphanumName": "Tens",
|
|
15
|
+
"file": "02 - Tens.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Hundreds",
|
|
19
|
+
"alphanumName": "Hundreds",
|
|
20
|
+
"file": "03 - Hundreds.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Thousands",
|
|
24
|
+
"alphanumName": "Thousands",
|
|
25
|
+
"file": "04 - Thousands.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Limit",
|
|
29
|
+
"alphanumName": "Limit",
|
|
30
|
+
"file": "05 - Limit.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Missing tens",
|
|
34
|
+
"alphanumName": "MissingTens",
|
|
35
|
+
"file": "06 - Missing tens.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Missing numbers",
|
|
39
|
+
"alphanumName": "MissingNumbers",
|
|
40
|
+
"file": "07 - Missing numbers.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Change of multiples",
|
|
44
|
+
"alphanumName": "ChangeOfMultiples",
|
|
45
|
+
"file": "08 - Change of multiples.txt"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Basic symbols",
|
|
49
|
+
"alphanumName": "BasicSymbols",
|
|
50
|
+
"file": "09 - Basic symbols.txt"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Repetitive numbers",
|
|
54
|
+
"alphanumName": "RepetitiveNumbers",
|
|
55
|
+
"file": "10 - Repetitive numbers.txt"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "Random number 1",
|
|
59
|
+
"alphanumName": "RandomNumber1",
|
|
60
|
+
"file": "11 - Random number 1.txt"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Random number 2",
|
|
64
|
+
"alphanumName": "RandomNumber2",
|
|
65
|
+
"file": "12 - Random number 2.txt"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int g;
|
|
11
|
+
int e;
|
|
12
|
+
cin >> g >> e; cin.ignore();
|
|
13
|
+
for (int i = 0; i < g; i++) {
|
|
14
|
+
string group;
|
|
15
|
+
getline(cin, group);
|
|
16
|
+
}
|
|
17
|
+
for (int i = 0; i < e; i++) {
|
|
18
|
+
int event;
|
|
19
|
+
cin >> event; cin.ignore();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
23
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
24
|
+
|
|
25
|
+
cout << "answer" << endl;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 g = in.nextInt();
|
|
10
|
+
int e = in.nextInt();
|
|
11
|
+
if (in.hasNextLine()) {
|
|
12
|
+
in.nextLine();
|
|
13
|
+
}
|
|
14
|
+
for (int i = 0; i < g; i++) {
|
|
15
|
+
String group = in.nextLine();
|
|
16
|
+
}
|
|
17
|
+
for (int i = 0; i < e; i++) {
|
|
18
|
+
int event = in.nextInt();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Write an answer using System.out.println()
|
|
22
|
+
// To debug: System.err.println("Debug messages...");
|
|
23
|
+
|
|
24
|
+
System.out.println("answer");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var inputs = readline().split(' ');
|
|
2
|
+
const g = parseInt(inputs[0]);
|
|
3
|
+
const e = parseInt(inputs[1]);
|
|
4
|
+
for (let i = 0; i < g; i++) {
|
|
5
|
+
const group = readline();
|
|
6
|
+
}
|
|
7
|
+
var inputs = readline().split(' ');
|
|
8
|
+
for (let i = 0; i < e; i++) {
|
|
9
|
+
const event = parseInt(inputs[i]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Write an answer using console.log()
|
|
13
|
+
// To debug: console.error('Debug messages...');
|
|
14
|
+
|
|
15
|
+
console.log('answer');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d %d", $g, $e);
|
|
3
|
+
for ($i = 0; $i < $g; $i++)
|
|
4
|
+
{
|
|
5
|
+
$group = stream_get_line(STDIN, 1024 + 1, "\n");
|
|
6
|
+
}
|
|
7
|
+
$inputs = explode(" ", fgets(STDIN));
|
|
8
|
+
for ($i = 0; $i < $e; $i++)
|
|
9
|
+
{
|
|
10
|
+
$event = intval($inputs[$i]);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
14
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
15
|
+
|
|
16
|
+
echo("answer\n");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var inputs: string[] = readline().split(' ');
|
|
2
|
+
const g: number = parseInt(inputs[0]);
|
|
3
|
+
const e: number = parseInt(inputs[1]);
|
|
4
|
+
for (let i = 0; i < g; i++) {
|
|
5
|
+
const group: string = readline();
|
|
6
|
+
}
|
|
7
|
+
var inputs: string[] = readline().split(' ');
|
|
8
|
+
for (let i = 0; i < e; i++) {
|
|
9
|
+
const event: number = parseInt(inputs[i]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Write an answer using console.log()
|
|
13
|
+
// To debug: console.error('Debug messages...');
|
|
14
|
+
|
|
15
|
+
console.log('answer');
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/JumpTheQueue",
|
|
3
|
+
"name": "Jump the Queue",
|
|
4
|
+
"alphanumName": "JumpTheQueue",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/jump-the-queue",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Example",
|
|
9
|
+
"alphanumName": "Example",
|
|
10
|
+
"file": "01 - Example.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Incomplete dequeue",
|
|
14
|
+
"alphanumName": "IncompleteDequeue",
|
|
15
|
+
"file": "02 - Incomplete dequeue.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Interlacing events",
|
|
19
|
+
"alphanumName": "InterlacingEvents",
|
|
20
|
+
"file": "03 - Interlacing events.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Rejoining the queue",
|
|
24
|
+
"alphanumName": "RejoiningTheQueue",
|
|
25
|
+
"file": "04 - Rejoining the queue.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Busy queue",
|
|
29
|
+
"alphanumName": "BusyQueue",
|
|
30
|
+
"file": "05 - Busy queue.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Bigger friend groups",
|
|
34
|
+
"alphanumName": "BiggerFriendGroups",
|
|
35
|
+
"file": "06 - Bigger friend groups.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Large pack of lone wolves",
|
|
39
|
+
"alphanumName": "LargePackOfLoneWolves",
|
|
40
|
+
"file": "07 - Large pack of lone wolves.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Long queue",
|
|
44
|
+
"alphanumName": "LongQueue",
|
|
45
|
+
"file": "08 - Long queue.txt"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
8 61
|
|
2
|
+
1011 1013 1030 1035 1036 1071 1073
|
|
3
|
+
1501 1537 1575 1596
|
|
4
|
+
2005 2058 2070
|
|
5
|
+
2520 2523 2565
|
|
6
|
+
3005 3050 3053 3057 3096
|
|
7
|
+
3551 3569 3581
|
|
8
|
+
4001 4019 4024 4064
|
|
9
|
+
4534 4571 4572 4575 4577 4590 4592
|
|
10
|
+
44 1537 3057 -1 -1 39 1575 4577 1036 3096 -1 3057 -1 3096 -1 3057 -1 3096 -1 1537 4571 2520 2005 -1 3 1073 1071 -1 -1 9 -1 3551 -1 44 -1 -1 -1 -1 4575 4001 1501 -1 4590 -1 -1 92 3050 20 67 86 -1 -1 -1 4024 -1 -1 -1 -1 -1 -1 -1
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
12 95
|
|
2
|
+
106 122 123 133 143 166 197
|
|
3
|
+
201 206 221 225 245 248 252 254 260 273
|
|
4
|
+
300 303 312 318 335 353 377 398
|
|
5
|
+
414 418 427 445 458 464
|
|
6
|
+
500 505 522 552 555 565 570 588
|
|
7
|
+
606 646 668 678 690 691
|
|
8
|
+
706 738 760 765 777 781 797
|
|
9
|
+
811 829 833 841 849 851 876 888 896 897
|
|
10
|
+
917 922 923 945 968 972 979 985
|
|
11
|
+
1027 1052 1064 1069 1079 1085 1086
|
|
12
|
+
1105 1114 1117 1128 1139 1158 1171 1187 1192
|
|
13
|
+
1212 1224 1244 1257 1259 1298
|
|
14
|
+
1192 -1 829 11 606 -1 -1 915 -1 12 565 987 922 -1 690 952 968 13 254 464 122 273 500 -1 -1 888 904 -1 945 166 -1 691 1298 -1 1069 -1 14 -1 522 -1 -1 -1 -1 1212 -1 923 -1 922 15 -1 -1 942 458 -1 -1 -1 1114 777 -1 1224 -1 951 303 -1 841 570 -1 -1 -1 16 -1 -1 -1 -1 668 973 985 -1 123 133 646 -1 760 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
3 128
|
|
2
|
+
1041 1098 1254 1315 1336 1386 1451 1527 1620 1751 1758 1794 1844 1891 1928 1955 1995
|
|
3
|
+
4009 4017 4114 4137 4140 4161 4181 4241 4268 4307 4326 4346 4352 4391 4435 4509 4532 4571 4572 4576 4620 4655 4692 4729 4814 4851 4934 4995
|
|
4
|
+
7044 7142 7194 7209 7371 7391 7397 7506 7876 7909 7921 7943 7951
|
|
5
|
+
67 -1 1041 7506 4571 7397 4326 -1 21 4241 -1 -1 -1 -1 -1 -1 1527 74 22 -1 -1 70 4137 -1 -1 -1 85 4181 -1 -1 1955 7371 62 -1 -1 4934 1315 77 7951 -1 -1 -1 -1 -1 56 -1 1995 1451 -1 4692 4391 -1 4352 4009 58 -1 37 1928 -1 4346 -1 -1 7194 1794 1758 -1 -1 18 -1 -1 7209 -1 -1 1098 -1 4572 68 32 -1 7921 -1 -1 1620 7142 36 41 1336 4532 4307 -1 7943 -1 19 -1 60 -1 -1 -1 1844 4017 -1 1751 4620 -1 -1 -1 7876 1891 -1 -1 -1 4814 4729 4576 1254 -1 -1 4995 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
2 229
|
|
2
|
+
3005 3010 3014 3039 3046 3052 3064 3074 3082 3083 3094
|
|
3
|
+
4008 4024 4039 4040 4046 4049 4051 4064 4067 4068 4077 4078 4083 4086 4089 4096
|
|
4
|
+
251 850 3005 839 -1 3039 4067 -1 -1 -1 924 929 -1 405 159 -1 893 15 -1 75 206 436 62 4051 -1 781 272 -1 4049 564 654 695 -1 -1 380 -1 -1 -1 7 114 171 151 790 125 793 27 656 298 231 324 717 4039 899 3082 -1 392 -1 -1 -1 -1 -1 -1 650 3052 -1 431 257 474 -1 4046 895 291 401 -1 386 -1 -1 174 3046 -1 606 897 319 197 814 4024 -1 310 4068 228 687 3094 816 791 583 340 3010 4077 139 -1 164 -1 520 349 611 -1 124 404 313 4040 -1 4078 -1 868 659 154 -1 -1 -1 -1 -1 -1 384 -1 -1 586 808 -1 3083 453 762 785 -1 -1 411 -1 522 -1 456 618 3014 309 3064 833 295 -1 4089 -1 697 686 4083 -1 4008 528 -1 692 4096 485 526 3074 149 368 505 -1 663 266 -1 -1 457 93 -1 -1 -1 121 -1 818 -1 91 244 -1 622 4086 -1 4064 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
20 407
|
|
2
|
+
10 16 17 18 24 25 30 31 32 35 36 38 41 44 49 53 55 56 57 61 69 71 72 79 85 91 92 96
|
|
3
|
+
110 111 117 119 120 121 122 124 126 127 129 132 133 134 137 139 140 143 145 149 150 151 152 154 157 158 162 163 165 167 168 175 177 178 179 191 192 193 196
|
|
4
|
+
213 217 218 221 224 226 232 234 235 237 241 242 243 248 254 259 261 262 263 264 269 282 287 288 292 294 298
|
|
5
|
+
310 311 314 315 318 320 321 324 326 327 328 331 336 339 343 344 346 351 353 354 360 361 369 370 372 373 375 376 378 383 384 385 386 387 389 392
|
|
6
|
+
410 411 412 413 414 416 419 420 425 426 434 439 441 443 444 445 448 449 452 455 456 457 461 466 469 470 471 480 481 484 485 486 491 493 495
|
|
7
|
+
510 511 514 518 519 521 525 527 534 537 539 547 549 551 553 555 557 559 560 564 565 566 572 573 575 577 582 583 584 585 587 589 592 598
|
|
8
|
+
618 621 623 625 627 628 632 634 635 636 640 645 655 658 659 666 667 677 687 689 695
|
|
9
|
+
711 712 723 729 731 733 734 735 736 740 742 745 746 754 755 756 757 758 759 760 763 765 771 775 777 779 782 789 798
|
|
10
|
+
816 817 821 823 825 826 827 834 836 841 844 845 849 851 852 853 854 855 856 860 861 862 863 864 866 868 873 875 879 885 887 889 894 895 897
|
|
11
|
+
910 916 928 935 939 942 947 954 957 971 975 976 978 982 984 985 990 991 995 998
|
|
12
|
+
1017 1018 1019 1023 1029 1033 1037 1039 1044 1049 1050 1052 1054 1057 1065 1066 1069 1070 1071 1073 1075 1076 1077 1078 1079 1080 1082 1083 1085 1086 1087 1092 1095 1097
|
|
13
|
+
1110 1111 1115 1116 1118 1120 1125 1128 1131 1132 1133 1137 1140 1144 1148 1150 1151 1153 1162 1163 1168 1173 1176 1178 1180 1185 1188 1192 1193 1197
|
|
14
|
+
1212 1215 1216 1217 1218 1219 1220 1225 1230 1232 1234 1237 1238 1241 1248 1250 1254 1256 1257 1258 1262 1268 1273 1274 1279 1280 1281 1283 1288 1289
|
|
15
|
+
1310 1313 1316 1319 1320 1328 1329 1331 1336 1341 1347 1353 1354 1356 1361 1367 1368 1372 1374 1376 1378 1381 1387 1391 1397
|
|
16
|
+
1411 1412 1418 1419 1423 1425 1429 1434 1439 1440 1441 1442 1446 1447 1449 1452 1455 1462 1465 1469 1471 1472 1477 1478 1482 1485 1490 1493 1494 1495 1496 1497 1498
|
|
17
|
+
1510 1512 1514 1515 1517 1519 1520 1521 1522 1523 1524 1526 1527 1533 1534 1536 1537 1538 1542 1551 1553 1554 1555 1556 1558 1563 1564 1565 1568 1569 1572 1577 1585 1587 1589 1590 1593 1597
|
|
18
|
+
1610 1611 1612 1616 1619 1626 1636 1637 1642 1643 1654 1655 1656 1658 1661 1663 1668 1669 1670 1672 1676 1683 1687 1690 1692 1694 1696 1697 1698
|
|
19
|
+
1713 1714 1715 1716 1717 1719 1721 1723 1726 1728 1730 1733 1737 1738 1739 1742 1744 1746 1747 1748 1751 1753 1755 1756 1761 1762 1767 1768 1769 1771 1774 1780 1782 1786 1793 1794 1798
|
|
20
|
+
1812 1814 1821 1823 1824 1827 1831 1832 1833 1839 1843 1847 1850 1869 1873 1874 1882 1884 1887 1888 1889 1893
|
|
21
|
+
1912 1913 1915 1917 1920 1922 1925 1928 1933 1937 1939 1940 1942 1943 1944 1946 1947 1950 1954 1955 1957 1959 1961 1963 1965 1966 1969 1970 1973 1976 1977 1979 1980 1983 1984 1986 1988 1997
|
|
22
|
+
1869 10931 10735 549 10308 1619 1517 -1 -1 10028 -1 10519 518 10297 -1 10452 1585 -1 386 55 167 -1 -1 1493 10532 10263 1747 10067 868 10601 10817 -1 143 10197 -1 10914 827 1391 1939 10261 10862 1979 263 723 10081 990 -1 10967 1439 777 -1 729 733 -1 -1 -1 10607 559 1069 10836 1786 -1 585 10960 10510 -1 10728 10659 1976 10572 659 369 -1 -1 10140 1078 1963 736 10605 85 -1 10449 10793 1794 -1 10825 10009 -1 10380 1597 10500 -1 -1 360 10381 519 910 655 1698 1942 10899 1721 735 -1 628 -1 1079 789 677 -1 -1 10676 10600 -1 10469 10655 1959 1824 79 -1 -1 -1 1626 10453 10405 10392 445 -1 -1 -1 232 10219 196 1746 10108 -1 10454 -1 10953 1572 1057 640 10488 1847 584 -1 1354 10878 1643 1087 10777 -1 10829 292 449 10577 -1 10276 10419 10260 -1 1429 1381 10545 10436 1361 1248 10631 361 779 1125 -1 221 10827 1884 -1 1692 1478 1320 1193 10456 10789 -1 235 1839 10823 -1 336 1920 10549 1654 10751 10831 -1 -1 -1 10553 -1 10583 1798 971 -1 10443 10277 623 1555 10053 1049 947 1961 -1 10704 10760 -1 444 1029 -1 -1 1133 10762 378 1472 10345 1258 -1 -1 10708 10199 -1 1636 10756 1310 1833 564 -1 31 817 1521 -1 343 1283 -1 1843 10018 36 10864 740 10347 10872 10964 1887 -1 1771 10205 527 96 218 1341 10064 217 -1 -1 -1 -1 -1 -1 10976 10905 687 -1 10097 310 -1 -1 1642 10484 -1 -1 -1 1565 10671 1748 -1 1728 10790 129 18 -1 10041 91 10087 10225 10233 -1 1656 10996 -1 1495 1423 954 -1 -1 1075 -1 -1 1831 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1839 1887 -1 1847 71 1884 -1 32 1831 471 -1 1824 -1 1887 470 -1 10455 1833 -1 -1 -1 1839 -1 1831 1884 -1 1824 -1 1843 -1 1847 -1 1831 -1 1839 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
|