aboutsummaryrefslogtreecommitdiff
path: root/problems/raidtime/attachments/template.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-09-30 16:08:27 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-09-30 16:08:27 +0530
commit3496b0ed08c51e37e135e686b1632fd86f930c2c (patch)
tree1da44792489607070f3b4ca14d82af05b73e362b /problems/raidtime/attachments/template.c
(init): Initialize repository.
Diffstat (limited to 'problems/raidtime/attachments/template.c')
-rw-r--r--problems/raidtime/attachments/template.c27
1 files changed, 27 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;
+}