@cyrilverloop/codingame-configuration 1.28.0 → 1.30.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 +17 -0
- package/config/easy/ASCIIAbacus/code/CGCode.cpp +19 -0
- package/config/easy/ASCIIAbacus/code/CGCode.java +18 -0
- package/config/easy/ASCIIAbacus/code/CGCode.js +8 -0
- package/config/easy/ASCIIAbacus/code/CGCode.php +10 -0
- package/config/easy/ASCIIAbacus/code/CGCode.ts +8 -0
- package/config/easy/ASCIIAbacus/config.json +68 -0
- package/config/easy/ASCIIAbacus/input/01 - 12345.6789.txt +11 -0
- package/config/easy/ASCIIAbacus/input/02 - 9987065.403321.txt +11 -0
- package/config/easy/ASCIIAbacus/input/03 - 23006.1103.txt +11 -0
- package/config/easy/ASCIIAbacus/input/04 - 10.8192453.txt +11 -0
- package/config/easy/ASCIIAbacus/input/05 - 159489.0007.txt +11 -0
- package/config/easy/ASCIIAbacus/input/06 - 482.03882048.txt +11 -0
- package/config/easy/ASCIIAbacus/input/07 - 0.0628.txt +11 -0
- package/config/easy/ASCIIAbacus/input/08 - 0.000000034.txt +11 -0
- package/config/easy/ASCIIAbacus/input/09 - 849200478.txt +11 -0
- package/config/easy/ASCIIAbacus/input/10 - 9999999999999.txt +11 -0
- package/config/easy/ASCIIAbacus/input/11 - 0.000000000001.txt +11 -0
- package/config/easy/ASCIIAbacus/input/12 - 0.txt +11 -0
- package/config/easy/ASCIIAbacus/output/01 - 12345.6789.txt +1 -0
- package/config/easy/ASCIIAbacus/output/02 - 9987065.403321.txt +1 -0
- package/config/easy/ASCIIAbacus/output/03 - 23006.1103.txt +1 -0
- package/config/easy/ASCIIAbacus/output/04 - 10.8192453.txt +1 -0
- package/config/easy/ASCIIAbacus/output/05 - 159489.0007.txt +1 -0
- package/config/easy/ASCIIAbacus/output/06 - 482.03882048.txt +1 -0
- package/config/easy/ASCIIAbacus/output/07 - 0.0628.txt +1 -0
- package/config/easy/ASCIIAbacus/output/08 - 0.000000034.txt +1 -0
- package/config/easy/ASCIIAbacus/output/09 - 849200478.txt +1 -0
- package/config/easy/ASCIIAbacus/output/10 - 9999999999999.txt +1 -0
- package/config/easy/ASCIIAbacus/output/11 - 0.000000000001.txt +1 -0
- package/config/easy/ASCIIAbacus/output/12 - 0.txt +1 -0
- package/config/easy/HagridSpeaking/code/CGCode.cpp +21 -0
- package/config/easy/HagridSpeaking/code/CGCode.java +22 -0
- package/config/easy/HagridSpeaking/code/CGCode.js +9 -0
- package/config/easy/HagridSpeaking/code/CGCode.php +11 -0
- package/config/easy/HagridSpeaking/code/CGCode.ts +9 -0
- package/config/easy/HagridSpeaking/config.json +48 -0
- package/config/easy/HagridSpeaking/input/01 - Simple sentences.txt +3 -0
- package/config/easy/HagridSpeaking/input/02 - Does Hagrid speak.txt +6 -0
- package/config/easy/HagridSpeaking/input/03 - t,f, d and g replacement.txt +8 -0
- package/config/easy/HagridSpeaking/input/04 - Word replacement.txt +2 -0
- package/config/easy/HagridSpeaking/input/05 - Do yeh forge/342/200/231 the case.txt" +3 -0
- package/config/easy/HagridSpeaking/input/06 - Compound Words.txt +2 -0
- package/config/easy/HagridSpeaking/input/07 - Edge cases.txt +11 -0
- package/config/easy/HagridSpeaking/input/08 - Very long talk.txt +12 -0
- package/config/easy/HagridSpeaking/output/01 - Simple sentences.txt +2 -0
- package/config/easy/HagridSpeaking/output/02 - Does Hagrid speak.txt +5 -0
- package/config/easy/HagridSpeaking/output/03 - t,f, d and g replacement.txt +7 -0
- package/config/easy/HagridSpeaking/output/04 - Word replacement.txt +1 -0
- package/config/easy/HagridSpeaking/output/05 - Do yeh forge/342/200/231 the case.txt" +2 -0
- package/config/easy/HagridSpeaking/output/06 - Compound Words.txt +1 -0
- package/config/easy/HagridSpeaking/output/07 - Edge cases.txt +10 -0
- package/config/easy/HagridSpeaking/output/08 - Very long talk.txt +11 -0
- package/config/easy/SignalCascade/code/CGCode.cpp +25 -0
- package/config/easy/SignalCascade/code/CGCode.java +22 -0
- package/config/easy/SignalCascade/code/CGCode.js +14 -0
- package/config/easy/SignalCascade/code/CGCode.php +12 -0
- package/config/easy/SignalCascade/code/CGCode.ts +14 -0
- package/config/easy/SignalCascade/config.json +48 -0
- package/config/easy/SignalCascade/input/01 - Example.txt +7 -0
- package/config/easy/SignalCascade/input/02 - Full Overload.txt +6 -0
- package/config/easy/SignalCascade/input/03 - Chain Reaction.txt +7 -0
- package/config/easy/SignalCascade/input/04 - Diagonal Chain.txt +7 -0
- package/config/easy/SignalCascade/input/05 - No Overload +5 -0
- package/config/easy/SignalCascade/input/06 - Large Calm Zone.txt +7 -0
- package/config/easy/SignalCascade/input/07 - Random 1.txt +10 -0
- package/config/easy/SignalCascade/input/08 - Random 2.txt +12 -0
- package/config/easy/SignalCascade/output/01 - Example.txt +5 -0
- package/config/easy/SignalCascade/output/02 - Full Overload.txt +4 -0
- package/config/easy/SignalCascade/output/03 - Chain Reaction.txt +5 -0
- package/config/easy/SignalCascade/output/04 - Diagonal Chain.txt +5 -0
- package/config/easy/SignalCascade/output/05 - No Overload +3 -0
- package/config/easy/SignalCascade/output/06 - Large Calm Zone.txt +5 -0
- package/config/easy/SignalCascade/output/07 - Random 1.txt +8 -0
- package/config/easy/SignalCascade/output/08 - Random 2.txt +10 -0
- package/config/easy/YouHaveBeenHacked/code/CGCode.cpp +29 -0
- package/config/easy/YouHaveBeenHacked/code/CGCode.java +31 -0
- package/config/easy/YouHaveBeenHacked/code/CGCode.js +15 -0
- package/config/easy/YouHaveBeenHacked/code/CGCode.php +19 -0
- package/config/easy/YouHaveBeenHacked/code/CGCode.ts +15 -0
- package/config/easy/YouHaveBeenHacked/config.json +38 -0
- package/config/easy/YouHaveBeenHacked/input/01 - Basic Scenario.txt +10 -0
- package/config/easy/YouHaveBeenHacked/input/02 - All Firewall Levels.txt +26 -0
- package/config/easy/YouHaveBeenHacked/input/03 - Accumulated Strengths - All Blocked.txt +37 -0
- package/config/easy/YouHaveBeenHacked/input/04 - Interleaved Attacks.txt +46 -0
- package/config/easy/YouHaveBeenHacked/input/05 - Complex Interleaving.txt +78 -0
- package/config/easy/YouHaveBeenHacked/input/06 - Total Disorder.txt +104 -0
- package/config/easy/YouHaveBeenHacked/output/01 - Basic Scenario.txt +2 -0
- package/config/easy/YouHaveBeenHacked/output/02 - All Firewall Levels.txt +6 -0
- package/config/easy/YouHaveBeenHacked/output/03 - Accumulated Strengths - All Blocked.txt +5 -0
- package/config/easy/YouHaveBeenHacked/output/04 - Interleaved Attacks.txt +4 -0
- package/config/easy/YouHaveBeenHacked/output/05 - Complex Interleaving.txt +6 -0
- package/config/easy/YouHaveBeenHacked/output/06 - Total Disorder.txt +8 -0
- package/config/hard/{SimonsOracle → SimonsExOracle}/config.json +4 -4
- package/config/medium/DecimationSequence/code/CGCode.cpp +22 -0
- package/config/medium/DecimationSequence/code/CGCode.java +20 -0
- package/config/medium/DecimationSequence/code/CGCode.js +12 -0
- package/config/medium/DecimationSequence/code/CGCode.php +12 -0
- package/config/medium/DecimationSequence/code/CGCode.ts +12 -0
- package/config/medium/DecimationSequence/config.json +58 -0
- package/config/medium/DecimationSequence/input/01 - 4 terms sequence, easy case.txt +2 -0
- package/config/medium/DecimationSequence/input/02 - 4 terms sequence, medium case.txt +2 -0
- package/config/medium/DecimationSequence/input/03 - 4 terms sequence, hard case.txt +2 -0
- package/config/medium/DecimationSequence/input/04 - Classical sequence, easy case.txt +2 -0
- package/config/medium/DecimationSequence/input/05 - Classical sequence, medium case.txt +2 -0
- package/config/medium/DecimationSequence/input/06 - Classical sequence, hard case.txt +2 -0
- package/config/medium/DecimationSequence/input/07 - Classical sequence, extreme case.txt +2 -0
- package/config/medium/DecimationSequence/input/08 - Random sequence, medium case.txt +2 -0
- package/config/medium/DecimationSequence/input/09 - Random sequence, hard case.txt +2 -0
- package/config/medium/DecimationSequence/input/10 - Random sequence, extreme case.txt +2 -0
- package/config/medium/DecimationSequence/output/01 - 4 terms sequence, easy case.txt +1 -0
- package/config/medium/DecimationSequence/output/02 - 4 terms sequence, medium case.txt +1 -0
- package/config/medium/DecimationSequence/output/03 - 4 terms sequence, hard case.txt +1 -0
- package/config/medium/DecimationSequence/output/04 - Classical sequence, easy case.txt +1 -0
- package/config/medium/DecimationSequence/output/05 - Classical sequence, medium case.txt +1 -0
- package/config/medium/DecimationSequence/output/06 - Classical sequence, hard case.txt +1 -0
- package/config/medium/DecimationSequence/output/07 - Classical sequence, extreme case.txt +1 -0
- package/config/medium/DecimationSequence/output/08 - Random sequence, medium case.txt +1 -0
- package/config/medium/DecimationSequence/output/09 - Random sequence, hard case.txt +1 -0
- package/config/medium/DecimationSequence/output/10 - Random sequence, extreme case.txt +1 -0
- package/config/medium/RubiksCubeStickers/code/CGCode.cpp +44 -0
- package/config/medium/RubiksCubeStickers/code/CGCode.java +43 -0
- package/config/medium/RubiksCubeStickers/code/CGCode.js +31 -0
- package/config/medium/RubiksCubeStickers/code/CGCode.php +29 -0
- package/config/medium/RubiksCubeStickers/code/CGCode.ts +31 -0
- package/config/medium/RubiksCubeStickers/config.json +48 -0
- package/config/medium/RubiksCubeStickers/input/01 - 1 center sticker.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/02 - 1 sidesticker.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/03 - 1 corner sticker.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/04 - 4 center stickers.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/05 - 4 side stickers.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/06 - 4 corner stickers.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/07 - C O D I N G.txt +12 -0
- package/config/medium/RubiksCubeStickers/input/08 - S H A K E D.txt +12 -0
- package/config/medium/RubiksCubeStickers/output/01 - 1 center sticker.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/02 - 1 sidesticker.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/03 - 1 corner sticker.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/04 - 4 center stickers.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/05 - 4 side stickers.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/06 - 4 corner stickers.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/07 - C O D I N G.txt +11 -0
- package/config/medium/RubiksCubeStickers/output/08 - S H A K E D.txt +11 -0
- package/config/medium/SimpleMakefiles/code/CGCode.cpp +34 -0
- package/config/medium/SimpleMakefiles/code/CGCode.java +31 -0
- package/config/medium/SimpleMakefiles/code/CGCode.js +20 -0
- package/config/medium/SimpleMakefiles/code/CGCode.php +22 -0
- package/config/medium/SimpleMakefiles/code/CGCode.ts +20 -0
- package/config/medium/SimpleMakefiles/config.json +83 -0
- package/config/medium/SimpleMakefiles/input/01 - Problem statement example.txt +12 -0
- package/config/medium/SimpleMakefiles/input/02 - Up-to-date check and partial rebuild.txt +13 -0
- package/config/medium/SimpleMakefiles/input/03 - Single rule with no actions.txt +6 -0
- package/config/medium/SimpleMakefiles/input/04 - Up-to-date ages.txt +14 -0
- package/config/medium/SimpleMakefiles/input/05 - Multiple goal targets.txt +16 -0
- package/config/medium/SimpleMakefiles/input/06 - No-action intermediates and unused rules.txt +19 -0
- package/config/medium/SimpleMakefiles/input/07 - Multiple targets with identical prerequisites.txt +18 -0
- package/config/medium/SimpleMakefiles/input/08 - Built-in macros and comments.txt +19 -0
- package/config/medium/SimpleMakefiles/input/09 - Same target in multiple rules.txt +23 -0
- package/config/medium/SimpleMakefiles/input/10 - Large partial rebuild.txt +25 -0
- package/config/medium/SimpleMakefiles/input/11 - Cycle detection.txt +22 -0
- package/config/medium/SimpleMakefiles/input/12 - Unreachable cycle detection.txt +22 -0
- package/config/medium/SimpleMakefiles/input/13 - All rebuild features combined.txt +40 -0
- package/config/medium/SimpleMakefiles/input/14 - Multiple action lines per rule.txt +25 -0
- package/config/medium/SimpleMakefiles/input/15 - Kitchen sink.txt +56 -0
- package/config/medium/SimpleMakefiles/output/01 - Problem statement example.txt +4 -0
- package/config/medium/SimpleMakefiles/output/02 - Up-to-date check and partial rebuild.txt +3 -0
- package/config/medium/SimpleMakefiles/output/03 - Single rule with no actions.txt +1 -0
- package/config/medium/SimpleMakefiles/output/04 - Up-to-date ages.txt +1 -0
- package/config/medium/SimpleMakefiles/output/05 - Multiple goal targets.txt +4 -0
- package/config/medium/SimpleMakefiles/output/06 - No-action intermediates and unused rules.txt +3 -0
- package/config/medium/SimpleMakefiles/output/07 - Multiple targets with identical prerequisites.txt +4 -0
- package/config/medium/SimpleMakefiles/output/08 - Built-in macros and comments.txt +6 -0
- package/config/medium/SimpleMakefiles/output/09 - Same target in multiple rules.txt +5 -0
- package/config/medium/SimpleMakefiles/output/10 - Large partial rebuild.txt +4 -0
- package/config/medium/SimpleMakefiles/output/11 - Cycle detection.txt +1 -0
- package/config/medium/SimpleMakefiles/output/12 - Unreachable cycle detection.txt +1 -0
- package/config/medium/SimpleMakefiles/output/13 - All rebuild features combined.txt +8 -0
- package/config/medium/SimpleMakefiles/output/14 - Multiple action lines per rule.txt +11 -0
- package/config/medium/SimpleMakefiles/output/15 - Kitchen sink.txt +14 -0
- package/config/medium/Squares/code/CGCode.cpp +30 -0
- package/config/medium/Squares/code/CGCode.java +27 -0
- package/config/medium/Squares/code/CGCode.js +20 -0
- package/config/medium/Squares/code/CGCode.php +15 -0
- package/config/medium/Squares/code/CGCode.ts +20 -0
- package/config/medium/Squares/config.json +38 -0
- package/config/medium/Squares/input/01 - Example.txt +10 -0
- package/config/medium/Squares/input/02 - Overlap.txt +17 -0
- package/config/medium/Squares/input/03 - Fat Squares.txt +15 -0
- package/config/medium/Squares/input/04 - Black Hole.txt +20 -0
- package/config/medium/Squares/input/05 - Venn.txt +28 -0
- package/config/medium/Squares/input/06 - Dartboard.txt +51 -0
- package/config/medium/Squares/output/01 - Example.txt +7 -0
- package/config/medium/Squares/output/02 - Overlap.txt +12 -0
- package/config/medium/Squares/output/03 - Fat Squares.txt +10 -0
- package/config/medium/Squares/output/04 - Black Hole.txt +15 -0
- package/config/medium/Squares/output/05 - Venn.txt +23 -0
- package/config/medium/Squares/output/06 - Dartboard.txt +46 -0
- package/package.json +1 -1
- /package/config/hard/{SimonsOracle → SimonsExOracle}/code/CGCode.js +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/code/CGCode.php +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/01 - Example.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/02 - Repetition.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/03 - Continuation.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/04 - Secrecy.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/05 - Saturation.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/06 - Coincidence.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/07 - Perpetuity.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/08 - Structure.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/input/09 - Genius.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/01 - Example.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/02 - Repetition.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/03 - Continuation.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/04 - Secrecy.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/05 - Saturation.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/06 - Coincidence.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/07 - Perpetuity.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/08 - Structure.txt +0 -0
- /package/config/hard/{SimonsOracle → SimonsExOracle}/output/09 - Genius.txt +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#include <iostream>
|
|
2
|
+
#include <string>
|
|
3
|
+
#include <vector>
|
|
4
|
+
#include <algorithm>
|
|
5
|
+
|
|
6
|
+
using namespace std;
|
|
7
|
+
|
|
8
|
+
int main()
|
|
9
|
+
{
|
|
10
|
+
int h;
|
|
11
|
+
int w;
|
|
12
|
+
cin >> h >> w; cin.ignore();
|
|
13
|
+
for (int i = 0; i < h; i++) {
|
|
14
|
+
string row;
|
|
15
|
+
cin >> row; cin.ignore();
|
|
16
|
+
}
|
|
17
|
+
int r;
|
|
18
|
+
int c;
|
|
19
|
+
cin >> r >> c; cin.ignore();
|
|
20
|
+
|
|
21
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
22
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
23
|
+
|
|
24
|
+
cout << "answer" << endl;
|
|
25
|
+
}
|
|
@@ -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 H = in.nextInt();
|
|
10
|
+
int W = in.nextInt();
|
|
11
|
+
for (int i = 0; i < H; i++) {
|
|
12
|
+
String ROW = in.next();
|
|
13
|
+
}
|
|
14
|
+
int R = in.nextInt();
|
|
15
|
+
int C = in.nextInt();
|
|
16
|
+
|
|
17
|
+
// Write an answer using System.out.println()
|
|
18
|
+
// To debug: System.err.println("Debug messages...");
|
|
19
|
+
|
|
20
|
+
System.out.println("answer");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var inputs = readline().split(' ');
|
|
2
|
+
const H = parseInt(inputs[0]);
|
|
3
|
+
const W = parseInt(inputs[1]);
|
|
4
|
+
for (let i = 0; i < H; i++) {
|
|
5
|
+
const ROW = readline();
|
|
6
|
+
}
|
|
7
|
+
var inputs = readline().split(' ');
|
|
8
|
+
const R = parseInt(inputs[0]);
|
|
9
|
+
const C = parseInt(inputs[1]);
|
|
10
|
+
|
|
11
|
+
// Write an answer using console.log()
|
|
12
|
+
// To debug: console.error('Debug messages...');
|
|
13
|
+
|
|
14
|
+
console.log('answer');
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d %d", $H, $W);
|
|
3
|
+
for ($i = 0; $i < $H; $i++)
|
|
4
|
+
{
|
|
5
|
+
fscanf(STDIN, "%s", $ROW);
|
|
6
|
+
}
|
|
7
|
+
fscanf(STDIN, "%d %d", $R, $C);
|
|
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("answer\n");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var inputs: string[] = readline().split(' ');
|
|
2
|
+
const H: number = parseInt(inputs[0]);
|
|
3
|
+
const W: number = parseInt(inputs[1]);
|
|
4
|
+
for (let i = 0; i < H; i++) {
|
|
5
|
+
const ROW: string = readline();
|
|
6
|
+
}
|
|
7
|
+
var inputs: string[] = readline().split(' ');
|
|
8
|
+
const R: number = parseInt(inputs[0]);
|
|
9
|
+
const C: number = parseInt(inputs[1]);
|
|
10
|
+
|
|
11
|
+
// Write an answer using console.log()
|
|
12
|
+
// To debug: console.error('Debug messages...');
|
|
13
|
+
|
|
14
|
+
console.log('answer');
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/SignalCascade",
|
|
3
|
+
"name": "Signal Cascade",
|
|
4
|
+
"alphanumName": "SignalCascade",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/signal-cascade",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Example",
|
|
9
|
+
"alphanumName": "Example",
|
|
10
|
+
"file": "01 - Example.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Full Overload",
|
|
14
|
+
"alphanumName": "FullOverload",
|
|
15
|
+
"file": "02 - Full Overload.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Chain Reaction",
|
|
19
|
+
"alphanumName": "ChainReaction",
|
|
20
|
+
"file": "03 - Chain Reaction.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Diagonal Chain",
|
|
24
|
+
"alphanumName": "DiagonalChain",
|
|
25
|
+
"file": "04 - Diagonal Chain.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "No Overload",
|
|
29
|
+
"alphanumName": "NoOverload",
|
|
30
|
+
"file": "05 - No Overload.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Large Calm Zone",
|
|
34
|
+
"alphanumName": "LargeCalmZone",
|
|
35
|
+
"file": "06 - Large Calm Zone.txt"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Random 1",
|
|
39
|
+
"alphanumName": "Random1",
|
|
40
|
+
"file": "07 - Random 1.txt"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Random 2",
|
|
44
|
+
"alphanumName": "Random2",
|
|
45
|
+
"file": "08 - Random 2.txt"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
string company;
|
|
14
|
+
getline(cin, company);
|
|
15
|
+
}
|
|
16
|
+
int a;
|
|
17
|
+
cin >> a; cin.ignore();
|
|
18
|
+
for (int i = 0; i < a; i++) {
|
|
19
|
+
string attack;
|
|
20
|
+
getline(cin, attack);
|
|
21
|
+
}
|
|
22
|
+
for (int i = 0; i < n; i++) {
|
|
23
|
+
|
|
24
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
|
25
|
+
// To debug: cerr << "Debug messages..." << endl;
|
|
26
|
+
|
|
27
|
+
cout << "company:status" << endl;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
if (in.hasNextLine()) {
|
|
11
|
+
in.nextLine();
|
|
12
|
+
}
|
|
13
|
+
for (int i = 0; i < n; i++) {
|
|
14
|
+
String company = in.nextLine();
|
|
15
|
+
}
|
|
16
|
+
int a = in.nextInt();
|
|
17
|
+
if (in.hasNextLine()) {
|
|
18
|
+
in.nextLine();
|
|
19
|
+
}
|
|
20
|
+
for (int i = 0; i < a; i++) {
|
|
21
|
+
String attack = in.nextLine();
|
|
22
|
+
}
|
|
23
|
+
for (int i = 0; i < n; i++) {
|
|
24
|
+
|
|
25
|
+
// Write an answer using System.out.println()
|
|
26
|
+
// To debug: System.err.println("Debug messages...");
|
|
27
|
+
|
|
28
|
+
System.out.println("company:status");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const n = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
const company = readline();
|
|
4
|
+
}
|
|
5
|
+
const a = parseInt(readline());
|
|
6
|
+
for (let i = 0; i < a; i++) {
|
|
7
|
+
const attack = readline();
|
|
8
|
+
}
|
|
9
|
+
for (let i = 0; i < n; i++) {
|
|
10
|
+
|
|
11
|
+
// Write an answer using console.log()
|
|
12
|
+
// To debug: console.error('Debug messages...');
|
|
13
|
+
|
|
14
|
+
console.log('company:status');
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
fscanf(STDIN, "%d", $n);
|
|
3
|
+
for ($i = 0; $i < $n; $i++)
|
|
4
|
+
{
|
|
5
|
+
$company = stream_get_line(STDIN, 50 + 1, "\n");
|
|
6
|
+
}
|
|
7
|
+
fscanf(STDIN, "%d", $a);
|
|
8
|
+
for ($i = 0; $i < $a; $i++)
|
|
9
|
+
{
|
|
10
|
+
$attack = stream_get_line(STDIN, 50 + 1, "\n");
|
|
11
|
+
}
|
|
12
|
+
for ($i = 0; $i < $n; $i++)
|
|
13
|
+
{
|
|
14
|
+
|
|
15
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
|
16
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
|
17
|
+
|
|
18
|
+
echo("company:status\n");
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const n: number = parseInt(readline());
|
|
2
|
+
for (let i = 0; i < n; i++) {
|
|
3
|
+
const company: string = readline();
|
|
4
|
+
}
|
|
5
|
+
const a: number = parseInt(readline());
|
|
6
|
+
for (let i = 0; i < a; i++) {
|
|
7
|
+
const attack: string = readline();
|
|
8
|
+
}
|
|
9
|
+
for (let i = 0; i < n; i++) {
|
|
10
|
+
|
|
11
|
+
// Write an answer using console.log()
|
|
12
|
+
// To debug: console.error('Debug messages...');
|
|
13
|
+
|
|
14
|
+
console.log('company:status');
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "easy/YouHaveBeenHacked",
|
|
3
|
+
"name": "You have been Hacked!",
|
|
4
|
+
"alphanumName": "YouHaveBeenHacked",
|
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/you-have-been-hacked",
|
|
6
|
+
"tests": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Basic Scenario",
|
|
9
|
+
"alphanumName": "BasicScenario",
|
|
10
|
+
"file": "01 - Basic Scenario.txt"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "All Firewall Levels",
|
|
14
|
+
"alphanumName": "AllFirewallLevels",
|
|
15
|
+
"file": "02 - All Firewall Levels.txt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Accumulated Strengths - All Blocked",
|
|
19
|
+
"alphanumName": "AccumulatedStrengthsAllBlocked",
|
|
20
|
+
"file": "03 - Accumulated Strengths - All Blocked.txt"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Interleaved Attacks",
|
|
24
|
+
"alphanumName": "InterleavedAttacks",
|
|
25
|
+
"file": "04 - Interleaved Attacks.txt"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Complex Interleaving",
|
|
29
|
+
"alphanumName": "ComplexInterleaving",
|
|
30
|
+
"file": "05 - Complex Interleaving.txt"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Total Disorder",
|
|
34
|
+
"alphanumName": "TotalDisorder",
|
|
35
|
+
"file": "06 - Total Disorder.txt"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
6
|
|
2
|
+
EchoWave:7
|
|
3
|
+
FluxCore:7
|
|
4
|
+
GigaByte:5
|
|
5
|
+
HeliosIT:6
|
|
6
|
+
IronGate:4
|
|
7
|
+
JadeWorks:3
|
|
8
|
+
18
|
|
9
|
+
EchoWave:ps:9999
|
|
10
|
+
EchoWave:bf:15
|
|
11
|
+
EchoWave:mi:25
|
|
12
|
+
FluxCore:ps:10000
|
|
13
|
+
FluxCore:bf:45
|
|
14
|
+
FluxCore:mi:30
|
|
15
|
+
GigaByte:ps:85
|
|
16
|
+
GigaByte:bf:4999
|
|
17
|
+
GigaByte:mi:2999
|
|
18
|
+
HeliosIT:ps:340
|
|
19
|
+
HeliosIT:bf:5000
|
|
20
|
+
HeliosIT:mi:3000
|
|
21
|
+
IronGate:ps:1200
|
|
22
|
+
IronGate:bf:499
|
|
23
|
+
IronGate:mi:999
|
|
24
|
+
JadeWorks:ps:65
|
|
25
|
+
JadeWorks:bf:500
|
|
26
|
+
JadeWorks:mi:1000
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
5
|
|
2
|
+
SolarisNet:5
|
|
3
|
+
UltraData:3
|
|
4
|
+
QuantumSec:9
|
|
5
|
+
TitanWorks:4
|
|
6
|
+
RiftLogic:6
|
|
7
|
+
30
|
|
8
|
+
QuantumSec:ps:6200
|
|
9
|
+
QuantumSec:ps:5300
|
|
10
|
+
QuantumSec:bf:75
|
|
11
|
+
QuantumSec:bf:40
|
|
12
|
+
QuantumSec:mi:65
|
|
13
|
+
QuantumSec:mi:85
|
|
14
|
+
RiftLogic:ps:140
|
|
15
|
+
RiftLogic:ps:210
|
|
16
|
+
RiftLogic:bf:2150
|
|
17
|
+
RiftLogic:bf:1350
|
|
18
|
+
RiftLogic:mi:1800
|
|
19
|
+
RiftLogic:mi:1211
|
|
20
|
+
SolarisNet:ps:80
|
|
21
|
+
SolarisNet:ps:120
|
|
22
|
+
SolarisNet:bf:2400
|
|
23
|
+
SolarisNet:bf:9506
|
|
24
|
+
SolarisNet:mi:1600
|
|
25
|
+
SolarisNet:mi:1300
|
|
26
|
+
TitanWorks:ps:95
|
|
27
|
+
TitanWorks:ps:105
|
|
28
|
+
TitanWorks:bf:478
|
|
29
|
+
TitanWorks:bf:270
|
|
30
|
+
TitanWorks:mi:450
|
|
31
|
+
TitanWorks:mi:450
|
|
32
|
+
UltraData:ps:35
|
|
33
|
+
UltraData:ps:70
|
|
34
|
+
UltraData:bf:220
|
|
35
|
+
UltraData:bf:230
|
|
36
|
+
UltraData:mi:803
|
|
37
|
+
UltraData:mi:420
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
4
|
|
2
|
+
AlphaBit:6
|
|
3
|
+
BravoCloud:5
|
|
4
|
+
CharlieHost:6
|
|
5
|
+
DeltaSec:5
|
|
6
|
+
40
|
|
7
|
+
AlphaBit:ps:85
|
|
8
|
+
BravoCloud:ps:40
|
|
9
|
+
CharlieHost:ps:120
|
|
10
|
+
DeltaSec:ps:90
|
|
11
|
+
AlphaBit:ps:65
|
|
12
|
+
BravoCloud:ps:110
|
|
13
|
+
CharlieHost:ps:75
|
|
14
|
+
DeltaSec:ps:130
|
|
15
|
+
AlphaBit:ps:150
|
|
16
|
+
BravoCloud:ps:80
|
|
17
|
+
CharlieHost:ps:95
|
|
18
|
+
DeltaSec:ps:60
|
|
19
|
+
AlphaBit:bf:1400
|
|
20
|
+
BravoCloud:bf:1350
|
|
21
|
+
CharlieHost:bf:13350
|
|
22
|
+
DeltaSec:bf:420
|
|
23
|
+
AlphaBit:bf:850
|
|
24
|
+
BravoCloud:bf:920
|
|
25
|
+
CharlieHost:bf:12280
|
|
26
|
+
DeltaSec:bf:310
|
|
27
|
+
AlphaBit:bf:1150
|
|
28
|
+
BravoCloud:bf:1280
|
|
29
|
+
CharlieHost:bf:14410
|
|
30
|
+
DeltaSec:bf:290
|
|
31
|
+
AlphaBit:bf:950
|
|
32
|
+
BravoCloud:bf:850
|
|
33
|
+
CharlieHost:bf:16660
|
|
34
|
+
DeltaSec:bf:3980
|
|
35
|
+
AlphaBit:mi:1100
|
|
36
|
+
BravoCloud:mi:1350
|
|
37
|
+
CharlieHost:mi:450
|
|
38
|
+
DeltaSec:mi:720
|
|
39
|
+
AlphaBit:mi:750
|
|
40
|
+
BravoCloud:mi:950
|
|
41
|
+
CharlieHost:mi:320
|
|
42
|
+
DeltaSec:mi:680
|
|
43
|
+
AlphaBit:mi:650
|
|
44
|
+
BravoCloud:mi:850
|
|
45
|
+
CharlieHost:mi:430
|
|
46
|
+
DeltaSec:mi:1600
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
6
|
|
2
|
+
AeroDynamics:5
|
|
3
|
+
BlueShift:8
|
|
4
|
+
CipherGate:7
|
|
5
|
+
DeepDive:4
|
|
6
|
+
ElevateIT:6
|
|
7
|
+
FrontierSys:3
|
|
8
|
+
70
|
|
9
|
+
FrontierSys:ps:130
|
|
10
|
+
CipherGate:ps:7800
|
|
11
|
+
AeroDynamics:ps:90
|
|
12
|
+
DeepDive:ps:85
|
|
13
|
+
ElevateIT:ps:95
|
|
14
|
+
BlueShift:ps:3200
|
|
15
|
+
ElevateIT:ps:120
|
|
16
|
+
CipherGate:ps:10000
|
|
17
|
+
FrontierSys:ps:60
|
|
18
|
+
BlueShift:ps:2800
|
|
19
|
+
CipherGate:ps:400
|
|
20
|
+
DeepDive:ps:110
|
|
21
|
+
ElevateIT:ps:65
|
|
22
|
+
CipherGate:ps:1100
|
|
23
|
+
AeroDynamics:ps:45
|
|
24
|
+
FrontierSys:ps:75
|
|
25
|
+
ElevateIT:bf:600
|
|
26
|
+
FrontierSys:bf:90
|
|
27
|
+
BlueShift:bf:190
|
|
28
|
+
AeroDynamics:bf:1600
|
|
29
|
+
CipherGate:bf:130
|
|
30
|
+
DeepDive:bf:140
|
|
31
|
+
BlueShift:bf:350
|
|
32
|
+
ElevateIT:bf:2840
|
|
33
|
+
CipherGate:bf:210
|
|
34
|
+
AeroDynamics:bf:1200
|
|
35
|
+
FrontierSys:bf:75
|
|
36
|
+
DeepDive:bf:160
|
|
37
|
+
CipherGate:bf:160
|
|
38
|
+
BlueShift:bf:140
|
|
39
|
+
FrontierSys:bf:110
|
|
40
|
+
ElevateIT:bf:250
|
|
41
|
+
CipherGate:bf:180
|
|
42
|
+
AeroDynamics:bf:1400
|
|
43
|
+
DeepDive:bf:120
|
|
44
|
+
ElevateIT:bf:110
|
|
45
|
+
BlueShift:bf:220
|
|
46
|
+
ElevateIT:bf:1200
|
|
47
|
+
FrontierSys:bf:85
|
|
48
|
+
FrontierSys:mi:210
|
|
49
|
+
CipherGate:mi:140
|
|
50
|
+
DeepDive:mi:160
|
|
51
|
+
ElevateIT:mi:90
|
|
52
|
+
BlueShift:mi:110
|
|
53
|
+
AeroDynamics:mi:4836
|
|
54
|
+
FrontierSys:mi:16528
|
|
55
|
+
ElevateIT:mi:1
|
|
56
|
+
CipherGate:mi:180
|
|
57
|
+
BlueShift:mi:160
|
|
58
|
+
AeroDynamics:mi:9460
|
|
59
|
+
DeepDive:mi:280
|
|
60
|
+
FrontierSys:mi:80
|
|
61
|
+
ElevateIT:mi:85
|
|
62
|
+
FrontierSys:mi:120
|
|
63
|
+
DeepDive:mi:140
|
|
64
|
+
CipherGate:mi:90
|
|
65
|
+
BlueShift:mi:120
|
|
66
|
+
AeroDynamics:mi:6
|
|
67
|
+
FrontierSys:mi:60
|
|
68
|
+
DeepDive:mi:310
|
|
69
|
+
ElevateIT:mi:2703
|
|
70
|
+
FrontierSys:mi:1000
|
|
71
|
+
BlueShift:mi:80
|
|
72
|
+
CipherGate:mi:130
|
|
73
|
+
AeroDynamics:mi:15027
|
|
74
|
+
FrontierSys:mi:250
|
|
75
|
+
FrontierSys:mi:45
|
|
76
|
+
ElevateIT:mi:120
|
|
77
|
+
DeepDive:mi:90
|
|
78
|
+
AeroDynamics:mi:3122
|