aboutsummaryrefslogtreecommitdiff
path: root/problems/chainwords/attachments/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'problems/chainwords/attachments/template.c')
-rw-r--r--problems/chainwords/attachments/template.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/problems/chainwords/attachments/template.c b/problems/chainwords/attachments/template.c
new file mode 100644
index 0000000..e933710
--- /dev/null
+++ b/problems/chainwords/attachments/template.c
@@ -0,0 +1,21 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ int N;
+ scanf("%d", &N); fgetc(stdin);
+ for (int i = 0; i < N; i++) {
+ char word[13];
+ scanf("%[^\n]", word); fgetc(stdin);
+ }
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("winner\n");
+
+ return 0;
+}