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,2 @@
12000 3000 5
400 25 200 80 500

View File

@ -0,0 +1,2 @@
10000 4000 7
110 10 20 10 5 3 5

View File

@ -0,0 +1,16 @@
#include <stdint.h>
#include <stdio.h>
int main(int argc, char **argv) {
int g, t, n;
scanf("%d %d %d", &g, &t, &n);
int sum = 0;
for (int i=0; i<n; i++) {
int a;
scanf("%d", &a);
sum += a;
}
int lol = (g-t) * 9/10;
printf("%d\n", lol-sum);
return 0;
}

View File

@ -0,0 +1,11 @@
#include <stdint.h>
#include <stdio.h>
int main(int argc, char **argv) {
int g, t, n;
scanf("%d %d %d", &g, &t, &n);
int sum = 0;
for (int i=0; i<n; i++) sum++;
printf("%d\n", g-t-sum);
return 0;
}

Binary file not shown.