# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
924304 | rainboy | 방 배정 (KOI16_room) | C11 | 1 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
#define T 6
int main() {
static int kk[T];
int n, k, t, cnt;
scanf("%d%d", &n, &k);
while (n--) {
int s, y;
scanf("%d%d", &s, &y);
kk[y <= 2 ? 0 : ((y - 3) / 2 << 1 | s) + 1]++;
}
cnt = 0;
for (t = 0; t < T; t++)
cnt += (kk[t] + k - 1) / k;
printf("%d\n", cnt);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |