Moved kattis from Uni repo

This commit is contained in:
2023-12-01 13:35:13 +01:00
parent 28a6b807a3
commit aaa2c123b8
164 changed files with 3008 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#include <stdio.h>
#include <stdlib.h>
typedef struct Transaction {
int amount;
char *service;
} Transaction;
int main(int argc, char **argv) {
Transaction x, y, z;
x.service = "Monnei";
y.service = "Fjee";
z.service = "Dolladollabilljoll";
scanf("%d %d %d", &x.amount, &y.amount, &z.amount);
// Get min
Transaction min = x;
if (y.amount < min.amount) {
min = y;
}
if (z.amount < min.amount) {
min = z;
}
printf("%s\n", min.service);
return 0;
}