Moved kattis from Uni repo
This commit is contained in:
18
kattis/problems/11_11_23/internationaldates/main.c
Normal file
18
kattis/problems/11_11_23/internationaldates/main.c
Normal file
@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int x,y,z;
|
||||
scanf("%d/%d/%d", &x, &y, &z);
|
||||
|
||||
// EU OR US OR EITHER
|
||||
if (x > 12) {
|
||||
printf("EU\n");
|
||||
} else if (y > 12) {
|
||||
printf("US\n");
|
||||
} else {
|
||||
printf("either\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user