Moved kattis from Uni repo
This commit is contained in:
22
kattis/problems/27_10_23/veidurhedar/main.c
Normal file
22
kattis/problems/27_10_23/veidurhedar/main.c
Normal file
@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define MAX 1000
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int max;
|
||||
int lines;
|
||||
scanf("%d %d", &max, &lines);
|
||||
|
||||
for (int i=0; i<lines; i++) {
|
||||
char name[MAX];
|
||||
int speed;
|
||||
scanf("%s %d", name, &speed);
|
||||
if (speed >= max) {
|
||||
printf("%s opin", name);
|
||||
} else {
|
||||
printf("%s lokud", name);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
BIN
kattis/problems/27_10_23/veidurhedar/program
Executable file
BIN
kattis/problems/27_10_23/veidurhedar/program
Executable file
Binary file not shown.
Reference in New Issue
Block a user