@cyrilverloop/codingame-configuration 1.17.0 → 1.17.1
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/TakuzuSolverEasyMode/code/CGCode.cpp +27 -0
- package/config/easy/TakuzuSolverEasyMode/code/CGCode.java +27 -0
- package/config/easy/TakuzuSolverEasyMode/code/CGCode.js +15 -0
- package/config/easy/TakuzuSolverEasyMode/code/CGCode.php +17 -0
- package/config/easy/TakuzuSolverEasyMode/code/CGCode.ts +15 -0
- package/config/easy/TakuzuSolverEasyMode/config.json +33 -0
- package/config/easy/TakuzuSolverEasyMode/input/01 - test 1.txt +7 -0
- package/config/easy/TakuzuSolverEasyMode/input/02 - test 2.txt +9 -0
- package/config/easy/TakuzuSolverEasyMode/input/03 - test 3.txt +11 -0
- package/config/easy/TakuzuSolverEasyMode/input/04 - test 4.txt +13 -0
- package/config/easy/TakuzuSolverEasyMode/input/05 - test 5.txt +15 -0
- package/config/easy/TakuzuSolverEasyMode/output/01 - test 1.txt +6 -0
- package/config/easy/TakuzuSolverEasyMode/output/02 - test 2.txt +8 -0
- package/config/easy/TakuzuSolverEasyMode/output/03 - test 3.txt +10 -0
- package/config/easy/TakuzuSolverEasyMode/output/04 - test 4.txt +12 -0
- package/config/easy/TakuzuSolverEasyMode/output/05 - test 5.txt +14 -0
- package/config/hard/CGChatInterpreter/config.json +1 -1
- 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
|
+
## [Unreleased]
|
8
|
+
### Added
|
9
|
+
- configuration for "Takuzu Solver (Easy mode)".
|
10
|
+
|
11
|
+
## [1.17.1] - 2025-07-31
|
12
|
+
### Fixed
|
13
|
+
- name of test "Syntax: «me» and «you»" for "CG Chat Interpreter".
|
14
|
+
|
7
15
|
## [1.17.0] - 2025-07-31
|
8
16
|
### Added
|
9
17
|
- configuration for "Button Mash".
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#include <iostream>
|
2
|
+
#include <string>
|
3
|
+
#include <vector>
|
4
|
+
#include <algorithm>
|
5
|
+
|
6
|
+
using namespace std;
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Takuzu Solver (Easy mode)
|
10
|
+
* No row or column may contain a sequence of three or more repeating digits
|
11
|
+
* e.g. 1 1 0 is valid but 1 1 1 is invalid
|
12
|
+
**/
|
13
|
+
|
14
|
+
int main()
|
15
|
+
{
|
16
|
+
int n;
|
17
|
+
cin >> n; cin.ignore();
|
18
|
+
for (int i = 0; i < n; i++) {
|
19
|
+
string row;
|
20
|
+
getline(cin, row);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Write an answer using cout. DON'T FORGET THE "<< endl"
|
24
|
+
// To debug: cerr << "Debug messages..." << endl;
|
25
|
+
|
26
|
+
cout << "Completed board" << endl;
|
27
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import java.util.*;
|
2
|
+
import java.io.*;
|
3
|
+
import java.math.*;
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Takuzu Solver (Easy mode)
|
7
|
+
* No row or column may contain a sequence of three or more repeating digits
|
8
|
+
* e.g. 1 1 0 is valid but 1 1 1 is invalid
|
9
|
+
**/
|
10
|
+
class Solution {
|
11
|
+
|
12
|
+
public static void main(String args[]) {
|
13
|
+
Scanner in = new Scanner(System.in);
|
14
|
+
int n = in.nextInt();
|
15
|
+
if (in.hasNextLine()) {
|
16
|
+
in.nextLine();
|
17
|
+
}
|
18
|
+
for (int i = 0; i < n; i++) {
|
19
|
+
String row = in.nextLine();
|
20
|
+
}
|
21
|
+
|
22
|
+
// Write an answer using System.out.println()
|
23
|
+
// To debug: System.err.println("Debug messages...");
|
24
|
+
|
25
|
+
System.out.println("Completed board");
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Takuzu Solver (Easy mode)
|
3
|
+
* No row or column may contain a sequence of three or more repeating digits
|
4
|
+
* e.g. 1 1 0 is valid but 1 1 1 is invalid
|
5
|
+
**/
|
6
|
+
|
7
|
+
const n = parseInt(readline());
|
8
|
+
for (let i = 0; i < n; i++) {
|
9
|
+
const row = readline();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Write an answer using console.log()
|
13
|
+
// To debug: console.error('Debug messages...');
|
14
|
+
|
15
|
+
console.log('Completed board');
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* Takuzu Solver (Easy mode)
|
4
|
+
* No row or column may contain a sequence of three or more repeating digits
|
5
|
+
* e.g. 1 1 0 is valid but 1 1 1 is invalid
|
6
|
+
**/
|
7
|
+
|
8
|
+
fscanf(STDIN, "%d", $n);
|
9
|
+
for ($i = 0; $i < $n; $i++)
|
10
|
+
{
|
11
|
+
$row = stream_get_line(STDIN, $n + 1, "\n");
|
12
|
+
}
|
13
|
+
|
14
|
+
// Write an answer using echo(). DON'T FORGET THE TRAILING \n
|
15
|
+
// To debug: error_log(var_export($var, true)); (equivalent to var_dump)
|
16
|
+
|
17
|
+
echo("Completed board\n");
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Takuzu Solver (Easy mode)
|
3
|
+
* No row or column may contain a sequence of three or more repeating digits
|
4
|
+
* e.g. 1 1 0 is valid but 1 1 1 is invalid
|
5
|
+
**/
|
6
|
+
|
7
|
+
const n: number = parseInt(readline());
|
8
|
+
for (let i = 0; i < n; i++) {
|
9
|
+
const row: string = readline();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Write an answer using console.log()
|
13
|
+
// To debug: console.error('Debug messages...');
|
14
|
+
|
15
|
+
console.log('Completed board');
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"path": "easy/TakuzuSolverEasyMode",
|
3
|
+
"name": "Takuzu Solver (Easy mode)",
|
4
|
+
"alphanumName": "TakuzuSolverEasyMode",
|
5
|
+
"link": "https://www.codingame.com/ide/puzzle/takuzu-solver-easy-mode",
|
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
|
+
}
|