Moved kattis from Uni repo
This commit is contained in:
10
kattis/problems/21_11_23/modulo/1.in
Normal file
10
kattis/problems/21_11_23/modulo/1.in
Normal file
@ -0,0 +1,10 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
14
kattis/problems/21_11_23/modulo/main.c
Normal file
14
kattis/problems/21_11_23/modulo/main.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int counter = 0;
|
||||
for (int i=0; i<10; i++) {
|
||||
int n;
|
||||
scanf("%d", &n);
|
||||
if (n % 42 == 0) {
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
printf("%d\n", 10-counter);
|
||||
}
|
BIN
kattis/problems/21_11_23/modulo/program
Executable file
BIN
kattis/problems/21_11_23/modulo/program
Executable file
Binary file not shown.
Reference in New Issue
Block a user