Moved kattis from Uni repo
This commit is contained in:
2
kattis/problems/01_11_23/gcvwr/1.in
Normal file
2
kattis/problems/01_11_23/gcvwr/1.in
Normal file
@ -0,0 +1,2 @@
|
||||
12000 3000 5
|
||||
400 25 200 80 500
|
2
kattis/problems/01_11_23/gcvwr/2.in
Normal file
2
kattis/problems/01_11_23/gcvwr/2.in
Normal file
@ -0,0 +1,2 @@
|
||||
10000 4000 7
|
||||
110 10 20 10 5 3 5
|
16
kattis/problems/01_11_23/gcvwr/main.c
Normal file
16
kattis/problems/01_11_23/gcvwr/main.c
Normal 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;
|
||||
}
|
11
kattis/problems/01_11_23/gcvwr/main.c.orig
Normal file
11
kattis/problems/01_11_23/gcvwr/main.c.orig
Normal 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;
|
||||
}
|
BIN
kattis/problems/01_11_23/gcvwr/program
Executable file
BIN
kattis/problems/01_11_23/gcvwr/program
Executable file
Binary file not shown.
Reference in New Issue
Block a user