diff options
Diffstat (limited to 'problems/cellsdoctor')
23 files changed, 342 insertions, 0 deletions
diff --git a/problems/cellsdoctor/attachments/template.c b/problems/cellsdoctor/attachments/template.c new file mode 100644 index 0000000..b4fbdd8 --- /dev/null +++ b/problems/cellsdoctor/attachments/template.c @@ -0,0 +1,18 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int iteration; + scanf("%d", &iteration); + int size; + scanf("%d", &size); fgetc(stdin); + for (int i = 0; i < size; i++) { + char ROW[1025]; + scanf("%[^\n]", ROW); fgetc(stdin); + } + + return 0; +} diff --git a/problems/cellsdoctor/attachments/template.cpp b/problems/cellsdoctor/attachments/template.cpp new file mode 100644 index 0000000..12215d4 --- /dev/null +++ b/problems/cellsdoctor/attachments/template.cpp @@ -0,0 +1,18 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + int iteration; + cin >> iteration; cin.ignore(); + int size; + cin >> size; cin.ignore(); + for (int i = 0; i < size; i++) { + string row; + getline(cin, row); + } +} diff --git a/problems/cellsdoctor/attachments/template.java b/problems/cellsdoctor/attachments/template.java new file mode 100644 index 0000000..34aa8be --- /dev/null +++ b/problems/cellsdoctor/attachments/template.java @@ -0,0 +1,18 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int iteration = in.nextInt(); + int size = in.nextInt(); + if (in.hasNextLine()) { + in.nextLine(); + } + for (int i = 0; i < size; i++) { + String ROW = in.nextLine(); + } + } +} diff --git a/problems/cellsdoctor/attachments/template.js b/problems/cellsdoctor/attachments/template.js new file mode 100644 index 0000000..6f216c1 --- /dev/null +++ b/problems/cellsdoctor/attachments/template.js @@ -0,0 +1,5 @@ +const iteration = parseInt(readline()); +const size = parseInt(readline()); +for (let i = 0; i < size; i++) { + const ROW = readline(); +} diff --git a/problems/cellsdoctor/attachments/template.py b/problems/cellsdoctor/attachments/template.py new file mode 100644 index 0000000..ec4f583 --- /dev/null +++ b/problems/cellsdoctor/attachments/template.py @@ -0,0 +1,7 @@ +import sys +import math + +iteration = int(input()) +size = int(input()) +for i in range(size): + row = input() diff --git a/problems/cellsdoctor/data/secret/1.ans b/problems/cellsdoctor/data/secret/1.ans new file mode 100644 index 0000000..dfae8a0 --- /dev/null +++ b/problems/cellsdoctor/data/secret/1.ans @@ -0,0 +1,5 @@ +..... +..... +.XXX. +..... +..... diff --git a/problems/cellsdoctor/data/secret/1.in b/problems/cellsdoctor/data/secret/1.in new file mode 100644 index 0000000..ac657b9 --- /dev/null +++ b/problems/cellsdoctor/data/secret/1.in @@ -0,0 +1,7 @@ +2 +5 +..... +..X.. +.X.X. +..... +...X. diff --git a/problems/cellsdoctor/data/secret/2.ans b/problems/cellsdoctor/data/secret/2.ans new file mode 100644 index 0000000..cf0d93e --- /dev/null +++ b/problems/cellsdoctor/data/secret/2.ans @@ -0,0 +1,4 @@ +...X.. +..X... +..X..X +....X. diff --git a/problems/cellsdoctor/data/secret/2.in b/problems/cellsdoctor/data/secret/2.in new file mode 100644 index 0000000..b075785 --- /dev/null +++ b/problems/cellsdoctor/data/secret/2.in @@ -0,0 +1,6 @@ +0 +4 +...X.. +..X... +..X..X +....X. diff --git a/problems/cellsdoctor/data/secret/3.ans b/problems/cellsdoctor/data/secret/3.ans new file mode 100644 index 0000000..f08f827 --- /dev/null +++ b/problems/cellsdoctor/data/secret/3.ans @@ -0,0 +1,10 @@ +.......... +.......... +.....XXX.. +....X...X. +...X.....X +....X...X. +.....XXX.. +.......... +.......... +.......... diff --git a/problems/cellsdoctor/data/secret/3.in b/problems/cellsdoctor/data/secret/3.in new file mode 100644 index 0000000..989805e --- /dev/null +++ b/problems/cellsdoctor/data/secret/3.in @@ -0,0 +1,12 @@ +2 +10 +.......... +.......... +.......... +.......... +...XXXXXXX +.......... +.......... +.......... +.......... +.......... diff --git a/problems/cellsdoctor/data/secret/4.ans b/problems/cellsdoctor/data/secret/4.ans new file mode 100644 index 0000000..f03a1ec --- /dev/null +++ b/problems/cellsdoctor/data/secret/4.ans @@ -0,0 +1,10 @@ +.......... +.......... +.......... +.....X.... +.XX.X.X... +.XX....... +....X..... +.....XXX.. +.....X.X.. +.......... diff --git a/problems/cellsdoctor/data/secret/4.in b/problems/cellsdoctor/data/secret/4.in new file mode 100644 index 0000000..2bf5dd7 --- /dev/null +++ b/problems/cellsdoctor/data/secret/4.in @@ -0,0 +1,12 @@ +20 +10 +.......... +.......... +.......... +.......... +...XXXXXXX +.......... +.......... +.......... +.......... +.......... diff --git a/problems/cellsdoctor/data/secret/5.ans b/problems/cellsdoctor/data/secret/5.ans new file mode 100644 index 0000000..cea9eb4 --- /dev/null +++ b/problems/cellsdoctor/data/secret/5.ans @@ -0,0 +1,20 @@ +.......................... +.......................... +.......................... +.......................... +.....................X.... +.......................... +....X..................... +...X..X.....X............. +...X...X....X..........X.. +.......X....X............. +....XX..X..............X.. +....XXXXXX....XXX.....XXX. +....XX..X................. +.......X....X............. +...X...X....X............. +...X..X.....X............. +....X..................... +.......................... +.......................... +.......................... diff --git a/problems/cellsdoctor/data/secret/5.in b/problems/cellsdoctor/data/secret/5.in new file mode 100644 index 0000000..20291b9 --- /dev/null +++ b/problems/cellsdoctor/data/secret/5.in @@ -0,0 +1,22 @@ +20 +20 +.......................... +.......................... +.......................... +.......................... +...X........X........X.... +.......................... +.......................... +............X............. +...X...................X.. +..X....................... +....X.......X..........X.. +..XXX.......XX........XXX. +............X............. +.......................... +.......................... +.......................... +.......................... +.......................... +.......................... +............X............. diff --git a/problems/cellsdoctor/data/secret/6.ans b/problems/cellsdoctor/data/secret/6.ans new file mode 100644 index 0000000..edb7466 --- /dev/null +++ b/problems/cellsdoctor/data/secret/6.ans @@ -0,0 +1,20 @@ +.......................... +.......................... +.......................... +.......................... +.....................X.... +.......................... +...........XX............. +...........XX............. +.......................X.. +.......................... +.......................X.. +......................XXX. +.......................... +.......................... +.......................... +...........XX............. +...........XX............. +.......................... +.......................... +.......................... diff --git a/problems/cellsdoctor/data/secret/6.in b/problems/cellsdoctor/data/secret/6.in new file mode 100644 index 0000000..f934665 --- /dev/null +++ b/problems/cellsdoctor/data/secret/6.in @@ -0,0 +1,22 @@ +50 +20 +.......................... +.......................... +.......................... +.......................... +...X........X........X.... +.......................... +.......................... +............X............. +...X...................X.. +..X....................... +....X.......X..........X.. +..XXX.......XX........XXX. +............X............. +.......................... +.......................... +.......................... +.......................... +.......................... +.......................... +............X............. diff --git a/problems/cellsdoctor/data/secret/7.ans b/problems/cellsdoctor/data/secret/7.ans new file mode 100644 index 0000000..86db0f6 --- /dev/null +++ b/problems/cellsdoctor/data/secret/7.ans @@ -0,0 +1,30 @@ +.............................. +.............................. +.............................. +..........X................... +.........X.................... +........X..................... +.......X...............XX..... +......X...............XXX..... +.....X................XXX..... +....X.................X....... +...X.................X........ +..X.................X......... +XXX...............XXX......... +XXX...............XXX......... +XXX...............XXX......... +..X.................X......... +...X.................X........ +....X.................X....... +.....X................XXX..... +......X...............XXX..... +.......X...............XX..... +........X..................... +.........X.................... +..........X................... +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. diff --git a/problems/cellsdoctor/data/secret/7.in b/problems/cellsdoctor/data/secret/7.in new file mode 100644 index 0000000..982e1f0 --- /dev/null +++ b/problems/cellsdoctor/data/secret/7.in @@ -0,0 +1,32 @@ +2 +30 +.............................. +............X................. +...........X.................. +..........X................... +.........X..........X......... +........X.............X....... +.......X...............X...... +......X.................X..... +.....X.................X...... +....X.................X....... +...X.................X........ +..X.................X......... +.X.................X.......... +X.................X........... +.X.................X.......... +..X.................X......... +...X.................X........ +....X.................X....... +.....X.................X...... +......X.................X..... +.......X...............X...... +........X.............X....... +.........X..........X......... +..........X................... +...........X.................. +............X................. +.............................. +.............................. +.............................. +.............................. diff --git a/problems/cellsdoctor/data/secret/8.ans b/problems/cellsdoctor/data/secret/8.ans new file mode 100644 index 0000000..d72a167 --- /dev/null +++ b/problems/cellsdoctor/data/secret/8.ans @@ -0,0 +1,29 @@ +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. +.....................XX....... +....................X..XX..... +.........................X.... +...........XX......X..XX.X.... +.......X..X.....XX.XXX.XXX.... +......XXX.XX...X..XX.......... +.....XX.XXXXX.X....X.......... +......XXX.XX...X..XX.......... +.......X..X.....XX.XXX.XXX.... +...........XX......X..XX.X.... +.........................X.... +....................X..XX..... +.....................XX....... +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. +.............................. diff --git a/problems/cellsdoctor/data/secret/8.in b/problems/cellsdoctor/data/secret/8.in new file mode 100644 index 0000000..7ae1411 --- /dev/null +++ b/problems/cellsdoctor/data/secret/8.in @@ -0,0 +1,32 @@ +18 +30 +.............................. +............X................. +...........X.................. +..........X................... +.........X..........X......... +........X.............X....... +.......X...............X...... +......X.................X..... +.....X.................X...... +....X.................X....... +...X.................X........ +..X.................X......... +.X.................X.......... +X.................X........... +.X.................X.......... +..X.................X......... +...X.................X........ +....X.................X....... +.....X.................X...... +......X.................X..... +.......X...............X...... +........X.............X....... +.........X..........X......... +..........X................... +...........X.................. +............X................. +.............................. +.............................. +.............................. +.............................. diff --git a/problems/cellsdoctor/domjudge-problem.ini b/problems/cellsdoctor/domjudge-problem.ini new file mode 100644 index 0000000..9208b24 --- /dev/null +++ b/problems/cellsdoctor/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Cell's Doctor" +timelimit = 6 +points = 2 diff --git a/problems/cellsdoctor/problem.pdf b/problems/cellsdoctor/problem.pdf Binary files differnew file mode 100644 index 0000000..7578a48 --- /dev/null +++ b/problems/cellsdoctor/problem.pdf |