Bitte ein Bit
Question
Solution
Idea
Time Complexity:
This is a purely give-away question. Nothing to say. Just print the first character of your input suffices.
Code
https://github.com/mendax1234/Coding-Problems/blob/main/kattis/bitteeinbit/bitteeinbit.c
#include <string.h>
#include <stdio.h>
#define MAX_LEN 100
int main()
{
char line[MAX_LEN];
if (fgets(line, MAX_LEN, stdin))
{
line[strcspn(line, "\n")] = 0;
}
putchar(line[0]);
}
Last updated