diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
commit | 3496b0ed08c51e37e135e686b1632fd86f930c2c (patch) | |
tree | 1da44792489607070f3b4ca14d82af05b73e362b /problems/raidtime |
(init): Initialize repository.
Diffstat (limited to 'problems/raidtime')
43 files changed, 473 insertions, 0 deletions
diff --git a/problems/raidtime/attachments/template.c b/problems/raidtime/attachments/template.c new file mode 100644 index 0000000..bfbd3ca --- /dev/null +++ b/problems/raidtime/attachments/template.c @@ -0,0 +1,27 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int w; + scanf("%d", &w); fgetc(stdin); + for (int i = 0; i < w; i++) { + char wall[257]; + scanf("%[^\n]", wall); fgetc(stdin); + } + int d; + scanf("%d", &d); fgetc(stdin); + for (int i = 0; i < d; i++) { + char door[257]; + scanf("%[^\n]", door); fgetc(stdin); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("0 C4 needed to go through 0 walls\n"); + + return 0; +} diff --git a/problems/raidtime/attachments/template.cpp b/problems/raidtime/attachments/template.cpp new file mode 100644 index 0000000..2c74c71 --- /dev/null +++ b/problems/raidtime/attachments/template.cpp @@ -0,0 +1,27 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + int w; + cin >> w; cin.ignore(); + for (int i = 0; i < w; i++) { + string wall; + getline(cin, wall); + } + int d; + cin >> d; cin.ignore(); + for (int i = 0; i < d; i++) { + string door; + getline(cin, door); + } + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "0 C4 needed to go through 0 walls" << endl; +} diff --git a/problems/raidtime/attachments/template.java b/problems/raidtime/attachments/template.java new file mode 100644 index 0000000..773f5c9 --- /dev/null +++ b/problems/raidtime/attachments/template.java @@ -0,0 +1,29 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int w = in.nextInt(); + if (in.hasNextLine()) { + in.nextLine(); + } + for (int i = 0; i < w; i++) { + String wall = in.nextLine(); + } + int d = in.nextInt(); + if (in.hasNextLine()) { + in.nextLine(); + } + for (int i = 0; i < d; i++) { + String door = in.nextLine(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("0 C4 needed to go through 0 walls"); + } +} diff --git a/problems/raidtime/attachments/template.js b/problems/raidtime/attachments/template.js new file mode 100644 index 0000000..e2df260 --- /dev/null +++ b/problems/raidtime/attachments/template.js @@ -0,0 +1,13 @@ +const w = parseInt(readline()); +for (let i = 0; i < w; i++) { + const wall = readline(); +} +const d = parseInt(readline()); +for (let i = 0; i < d; i++) { + const door = readline(); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('0 C4 needed to go through 0 walls'); diff --git a/problems/raidtime/attachments/template.py b/problems/raidtime/attachments/template.py new file mode 100644 index 0000000..442793e --- /dev/null +++ b/problems/raidtime/attachments/template.py @@ -0,0 +1,14 @@ +import sys +import math + +w = int(input()) +for i in range(w): + wall = input() +d = int(input()) +for i in range(d): + door = input() + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("0 C4 needed to go through 0 walls") diff --git a/problems/raidtime/data/secret/1.ans b/problems/raidtime/data/secret/1.ans new file mode 100644 index 0000000..decf070 --- /dev/null +++ b/problems/raidtime/data/secret/1.ans @@ -0,0 +1 @@ +2 C4 needed to go through 1 wall(s) diff --git a/problems/raidtime/data/secret/1.in b/problems/raidtime/data/secret/1.in new file mode 100644 index 0000000..689c166 --- /dev/null +++ b/problems/raidtime/data/secret/1.in @@ -0,0 +1,5 @@ +1 +Stone wall +2 +Sheet door +Sheet door diff --git a/problems/raidtime/data/secret/10.ans b/problems/raidtime/data/secret/10.ans new file mode 100644 index 0000000..46e846e --- /dev/null +++ b/problems/raidtime/data/secret/10.ans @@ -0,0 +1 @@ +11 C4 needed to go through 7 door(s) diff --git a/problems/raidtime/data/secret/10.in b/problems/raidtime/data/secret/10.in new file mode 100644 index 0000000..e6292d7 --- /dev/null +++ b/problems/raidtime/data/secret/10.in @@ -0,0 +1,16 @@ +7 +Stone wall +Metal wall +Wood wall +Stone wall +Stone wall +Metal wall +Stone wall +7 +Sheet door +Garage door +Garage door +Garage door +Sheet door +Garage door +Sheet door diff --git a/problems/raidtime/data/secret/11.ans b/problems/raidtime/data/secret/11.ans new file mode 100644 index 0000000..f9b8a66 --- /dev/null +++ b/problems/raidtime/data/secret/11.ans @@ -0,0 +1 @@ +7 C4 needed to go through 4 door(s) diff --git a/problems/raidtime/data/secret/11.in b/problems/raidtime/data/secret/11.in new file mode 100644 index 0000000..f5b495f --- /dev/null +++ b/problems/raidtime/data/secret/11.in @@ -0,0 +1,12 @@ +6 +Stone wall +Wood wall +Metal wall +Stone wall +Wood wall +Stone wall +4 +Sheet door +Wood door +Garage door +Armored door diff --git a/problems/raidtime/data/secret/12.ans b/problems/raidtime/data/secret/12.ans new file mode 100644 index 0000000..f9b8a66 --- /dev/null +++ b/problems/raidtime/data/secret/12.ans @@ -0,0 +1 @@ +7 C4 needed to go through 4 door(s) diff --git a/problems/raidtime/data/secret/12.in b/problems/raidtime/data/secret/12.in new file mode 100644 index 0000000..4f54134 --- /dev/null +++ b/problems/raidtime/data/secret/12.in @@ -0,0 +1,10 @@ +4 +Wood wall +Stone wall +Stone wall +Metal wall +4 +Wood door +Sheet door +Garage door +Armored door diff --git a/problems/raidtime/data/secret/13.ans b/problems/raidtime/data/secret/13.ans new file mode 100644 index 0000000..624894b --- /dev/null +++ b/problems/raidtime/data/secret/13.ans @@ -0,0 +1 @@ +9 C4 needed to go through 5 door(s) diff --git a/problems/raidtime/data/secret/13.in b/problems/raidtime/data/secret/13.in new file mode 100644 index 0000000..796d59d --- /dev/null +++ b/problems/raidtime/data/secret/13.in @@ -0,0 +1,15 @@ +8 +Metal wall +Stone wall +Wood wall +Stone wall +Metal wall +Stone wall +Wood wall +Metal wall +5 +Garage door +Armored door +Sheet door +Wood door +Garage door diff --git a/problems/raidtime/data/secret/14.ans b/problems/raidtime/data/secret/14.ans new file mode 100644 index 0000000..b62d63d --- /dev/null +++ b/problems/raidtime/data/secret/14.ans @@ -0,0 +1 @@ +13 C4 needed to go through 7 wall(s) diff --git a/problems/raidtime/data/secret/14.in b/problems/raidtime/data/secret/14.in new file mode 100644 index 0000000..74e2232 --- /dev/null +++ b/problems/raidtime/data/secret/14.in @@ -0,0 +1,16 @@ +7 +Wood wall +Stone wall +Metal wall +Wood wall +Stone wall +Stone wall +Wood wall +7 +Sheet door +Armored door +Garage door +Sheet door +Garage door +Armored door +Armored door diff --git a/problems/raidtime/data/secret/15.ans b/problems/raidtime/data/secret/15.ans new file mode 100644 index 0000000..89d53c5 --- /dev/null +++ b/problems/raidtime/data/secret/15.ans @@ -0,0 +1 @@ +7 C4 needed to go through 3 wall(s) diff --git a/problems/raidtime/data/secret/15.in b/problems/raidtime/data/secret/15.in new file mode 100644 index 0000000..41c5204 --- /dev/null +++ b/problems/raidtime/data/secret/15.in @@ -0,0 +1,11 @@ +3 +Wood wall +Stone wall +Metal wall +6 +Wood door +Sheet door +Armored door +Garage door +Sheet door +Wood door diff --git a/problems/raidtime/data/secret/16.ans b/problems/raidtime/data/secret/16.ans new file mode 100644 index 0000000..5f5cd79 --- /dev/null +++ b/problems/raidtime/data/secret/16.ans @@ -0,0 +1 @@ +10 C4 needed to go through 5 door(s) diff --git a/problems/raidtime/data/secret/16.in b/problems/raidtime/data/secret/16.in new file mode 100644 index 0000000..153c7b8 --- /dev/null +++ b/problems/raidtime/data/secret/16.in @@ -0,0 +1,12 @@ +5 +Stone wall +Metal wall +Stone wall +Metal wall +Wood wall +5 +Armored door +Garage door +Sheet door +Wood door +Armored door diff --git a/problems/raidtime/data/secret/17.ans b/problems/raidtime/data/secret/17.ans new file mode 100644 index 0000000..6697621 --- /dev/null +++ b/problems/raidtime/data/secret/17.ans @@ -0,0 +1 @@ +10 C4 needed to go through 5 wall(s) diff --git a/problems/raidtime/data/secret/17.in b/problems/raidtime/data/secret/17.in new file mode 100644 index 0000000..3b08c5f --- /dev/null +++ b/problems/raidtime/data/secret/17.in @@ -0,0 +1,14 @@ +5 +Stone wall +Wood wall +Metal wall +Stone wall +Wood wall +7 +Armored door +Garage door +Sheet door +Wood door +Garage door +Armored door +Garage door diff --git a/problems/raidtime/data/secret/18.ans b/problems/raidtime/data/secret/18.ans new file mode 100644 index 0000000..c761e5c --- /dev/null +++ b/problems/raidtime/data/secret/18.ans @@ -0,0 +1 @@ +9 C4 needed to go through 4 wall(s) diff --git a/problems/raidtime/data/secret/18.in b/problems/raidtime/data/secret/18.in new file mode 100644 index 0000000..acf9663 --- /dev/null +++ b/problems/raidtime/data/secret/18.in @@ -0,0 +1,10 @@ +4 +Metal wall +Stone wall +Wood wall +Stone wall +4 +Sheet door +Garage door +Armored door +Armored door diff --git a/problems/raidtime/data/secret/2.ans b/problems/raidtime/data/secret/2.ans new file mode 100644 index 0000000..decf070 --- /dev/null +++ b/problems/raidtime/data/secret/2.ans @@ -0,0 +1 @@ +2 C4 needed to go through 1 wall(s) diff --git a/problems/raidtime/data/secret/2.in b/problems/raidtime/data/secret/2.in new file mode 100644 index 0000000..b43ec22 --- /dev/null +++ b/problems/raidtime/data/secret/2.in @@ -0,0 +1,4 @@ +1 +Stone wall +1 +Garage door diff --git a/problems/raidtime/data/secret/3.ans b/problems/raidtime/data/secret/3.ans new file mode 100644 index 0000000..feaf47b --- /dev/null +++ b/problems/raidtime/data/secret/3.ans @@ -0,0 +1 @@ +5 C4 needed to go through 3 door(s) diff --git a/problems/raidtime/data/secret/3.in b/problems/raidtime/data/secret/3.in new file mode 100644 index 0000000..1e09abc --- /dev/null +++ b/problems/raidtime/data/secret/3.in @@ -0,0 +1,7 @@ +2 +Stone wall +Metal wall +3 +Armored door +Sheet door +Sheet door diff --git a/problems/raidtime/data/secret/4.ans b/problems/raidtime/data/secret/4.ans new file mode 100644 index 0000000..d886e0c --- /dev/null +++ b/problems/raidtime/data/secret/4.ans @@ -0,0 +1 @@ +5 C4 needed to go through 4 door(s) diff --git a/problems/raidtime/data/secret/4.in b/problems/raidtime/data/secret/4.in new file mode 100644 index 0000000..cb52a82 --- /dev/null +++ b/problems/raidtime/data/secret/4.in @@ -0,0 +1,8 @@ +2 +Stone wall +Armored wall +4 +Wood door +Garage door +Sheet door +Sheet door diff --git a/problems/raidtime/data/secret/5.ans b/problems/raidtime/data/secret/5.ans new file mode 100644 index 0000000..31821a6 --- /dev/null +++ b/problems/raidtime/data/secret/5.ans @@ -0,0 +1 @@ +32 C4 needed to go through 9 wall(s) diff --git a/problems/raidtime/data/secret/5.in b/problems/raidtime/data/secret/5.in new file mode 100644 index 0000000..5391ea5 --- /dev/null +++ b/problems/raidtime/data/secret/5.in @@ -0,0 +1,30 @@ +9 +Armored wall +Stone wall +Metal wall +Stone wall +Wood wall +Armored wall +Metal wall +Wood wall +Stone wall +19 +Sheet door +Garage door +Sheet door +Armored door +Wood door +Wood door +Wood door +Armored door +Sheet door +Garage door +Garage door +Wood door +Armored door +Garage door +Garage door +Garage door +Garage door +Garage door +Garage door diff --git a/problems/raidtime/data/secret/6.ans b/problems/raidtime/data/secret/6.ans new file mode 100644 index 0000000..7251a13 --- /dev/null +++ b/problems/raidtime/data/secret/6.ans @@ -0,0 +1 @@ +14 C4 needed to go through 8 door(s) diff --git a/problems/raidtime/data/secret/6.in b/problems/raidtime/data/secret/6.in new file mode 100644 index 0000000..44604b0 --- /dev/null +++ b/problems/raidtime/data/secret/6.in @@ -0,0 +1,19 @@ +9 +Stone wall +Metal wall +Wood wall +Stone wall +Metal wall +Wood wall +Stone wall +Metal wall +Wood wall +8 +Sheet door +Armored door +Wood door +Garage door +Sheet door +Armored door +Wood door +Garage door diff --git a/problems/raidtime/data/secret/7.ans b/problems/raidtime/data/secret/7.ans new file mode 100644 index 0000000..0614f28 --- /dev/null +++ b/problems/raidtime/data/secret/7.ans @@ -0,0 +1 @@ +156 C4 needed to go through 20 wall(s) diff --git a/problems/raidtime/data/secret/7.in b/problems/raidtime/data/secret/7.in new file mode 100644 index 0000000..a064f09 --- /dev/null +++ b/problems/raidtime/data/secret/7.in @@ -0,0 +1,74 @@ +20 +Metal wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +Armored wall +52 +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door +Armored door diff --git a/problems/raidtime/data/secret/8.ans b/problems/raidtime/data/secret/8.ans new file mode 100644 index 0000000..b0eb289 --- /dev/null +++ b/problems/raidtime/data/secret/8.ans @@ -0,0 +1 @@ +52 C4 needed to go through 13 wall(s) diff --git a/problems/raidtime/data/secret/8.in b/problems/raidtime/data/secret/8.in new file mode 100644 index 0000000..225e284 --- /dev/null +++ b/problems/raidtime/data/secret/8.in @@ -0,0 +1,67 @@ +13 +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +Metal wall +52 +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door +Sheet door diff --git a/problems/raidtime/data/secret/9.ans b/problems/raidtime/data/secret/9.ans new file mode 100644 index 0000000..624894b --- /dev/null +++ b/problems/raidtime/data/secret/9.ans @@ -0,0 +1 @@ +9 C4 needed to go through 5 door(s) diff --git a/problems/raidtime/data/secret/9.in b/problems/raidtime/data/secret/9.in new file mode 100644 index 0000000..d181829 --- /dev/null +++ b/problems/raidtime/data/secret/9.in @@ -0,0 +1,12 @@ +5 +Metal wall +Stone wall +Wood wall +Armored wall +Stone wall +5 +Wood door +Armored door +Sheet door +Garage door +Garage door diff --git a/problems/raidtime/domjudge-problem.ini b/problems/raidtime/domjudge-problem.ini new file mode 100644 index 0000000..ceeea76 --- /dev/null +++ b/problems/raidtime/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Raid Time!" +timelimit = 3 +points = 2 diff --git a/problems/raidtime/problem.pdf b/problems/raidtime/problem.pdf Binary files differnew file mode 100644 index 0000000..d2bb124 --- /dev/null +++ b/problems/raidtime/problem.pdf |