diff options
Diffstat (limited to 'problems/raidtime/attachments')
-rw-r--r-- | problems/raidtime/attachments/template.c | 27 | ||||
-rw-r--r-- | problems/raidtime/attachments/template.cpp | 27 | ||||
-rw-r--r-- | problems/raidtime/attachments/template.java | 29 | ||||
-rw-r--r-- | problems/raidtime/attachments/template.js | 13 | ||||
-rw-r--r-- | problems/raidtime/attachments/template.py | 14 |
5 files changed, 110 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") |