aboutsummaryrefslogtreecommitdiff
path: root/problems/gameofquarters/attachments/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'problems/gameofquarters/attachments/template.c')
-rw-r--r--problems/gameofquarters/attachments/template.c23
1 files changed, 23 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;
+}