diff options
Diffstat (limited to 'problems/boatraceanalysis/attachments/template.c')
-rw-r--r-- | problems/boatraceanalysis/attachments/template.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/problems/boatraceanalysis/attachments/template.c b/problems/boatraceanalysis/attachments/template.c new file mode 100644 index 0000000..0fa2b86 --- /dev/null +++ b/problems/boatraceanalysis/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 analysis[1025]; + scanf("%[^\n]", analysis); fgetc(stdin); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("one line per boat with its position or one line per analysis causing an error\n"); + + return 0; +} |