diff options
Diffstat (limited to 'problems/gameofquarters/attachments')
| -rw-r--r-- | problems/gameofquarters/attachments/template.c | 23 | ||||
| -rw-r--r-- | problems/gameofquarters/attachments/template.cpp | 23 | ||||
| -rw-r--r-- | problems/gameofquarters/attachments/template.java | 21 | ||||
| -rw-r--r-- | problems/gameofquarters/attachments/template.js | 12 | ||||
| -rw-r--r-- | problems/gameofquarters/attachments/template.py | 11 |
5 files changed, 90 insertions, 0 deletions
diff --git a/problems/gameofquarters/attachments/template.c b/problems/gameofquarters/attachments/template.c new file mode 100644 index 0000000..24ec6b6 --- /dev/null +++ b/problems/gameofquarters/attachments/template.c @@ -0,0 +1,23 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int number_of_rounds; + scanf("%d", &number_of_rounds); + for (int i = 0; i < number_of_rounds; i++) { + char alice_sequence[4]; + char bob_sequence[4]; + char round_tosses[21]; + scanf("%s%s%s", alice_sequence, bob_sequence, round_tosses); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("WINNER!\n"); + + return 0; +} diff --git a/problems/gameofquarters/attachments/template.cpp b/problems/gameofquarters/attachments/template.cpp new file mode 100644 index 0000000..98a8956 --- /dev/null +++ b/problems/gameofquarters/attachments/template.cpp @@ -0,0 +1,23 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + int number_of_rounds; + cin >> number_of_rounds; cin.ignore(); + for (int i = 0; i < number_of_rounds; i++) { + string alice_sequence; + string bob_sequence; + string round_tosses; + cin >> alice_sequence >> bob_sequence >> round_tosses; cin.ignore(); + } + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "WINNER!" << endl; +} diff --git a/problems/gameofquarters/attachments/template.java b/problems/gameofquarters/attachments/template.java new file mode 100644 index 0000000..e2848a8 --- /dev/null +++ b/problems/gameofquarters/attachments/template.java @@ -0,0 +1,21 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int numberOfRounds = in.nextInt(); + for (int i = 0; i < numberOfRounds; i++) { + String aliceSequence = in.next(); + String bobSequence = in.next(); + String roundTosses = in.next(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("WINNER!"); + } +} diff --git a/problems/gameofquarters/attachments/template.js b/problems/gameofquarters/attachments/template.js new file mode 100644 index 0000000..aa2903d --- /dev/null +++ b/problems/gameofquarters/attachments/template.js @@ -0,0 +1,12 @@ +const numberOfRounds = parseInt(readline()); +for (let i = 0; i < numberOfRounds; i++) { + var inputs = readline().split(' '); + const aliceSequence = inputs[0]; + const bobSequence = inputs[1]; + const roundTosses = inputs[2]; +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('WINNER!'); diff --git a/problems/gameofquarters/attachments/template.py b/problems/gameofquarters/attachments/template.py new file mode 100644 index 0000000..461fe27 --- /dev/null +++ b/problems/gameofquarters/attachments/template.py @@ -0,0 +1,11 @@ +import sys +import math + +number_of_rounds = int(input()) +for i in range(number_of_rounds): + alice_sequence, bob_sequence, round_tosses = input().split() + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("WINNER!") |
