aboutsummaryrefslogtreecommitdiff
path: root/problems/whoisleading/attachments/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'problems/whoisleading/attachments/template.c')
-rw-r--r--problems/whoisleading/attachments/template.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/problems/whoisleading/attachments/template.c b/problems/whoisleading/attachments/template.c
new file mode 100644
index 0000000..9b6c317
--- /dev/null
+++ b/problems/whoisleading/attachments/template.c
@@ -0,0 +1,23 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ char teams[101];
+ scanf("%[^\n]", teams); fgetc(stdin);
+ char scores_1[201];
+ scanf("%[^\n]", scores_1); fgetc(stdin);
+ char scores_2[201];
+ scanf("%[^\n]", scores_2);
+ for (int i = 0; i < 2; i++) {
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("Team name: score minutes_leading\n");
+ }
+
+ return 0;
+}