diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
commit | 3496b0ed08c51e37e135e686b1632fd86f930c2c (patch) | |
tree | 1da44792489607070f3b4ca14d82af05b73e362b /problems/raidtime/attachments/template.c |
(init): Initialize repository.
Diffstat (limited to 'problems/raidtime/attachments/template.c')
-rw-r--r-- | problems/raidtime/attachments/template.c | 27 |
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; +} |