# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
924251 | rainboy | 방 배정 (KOI16_aa) | C11 | 1 ms | 756 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 Y 6
int main() {
static int kk[Y * 2];
int n, k, s, y, t, cnt;
scanf("%d%d", &n, &k);
while (n--) {
scanf("%d%d", &s, &y), y--;
kk[y << 1 | s]++;
}
cnt = 0;
for (t = 0; t < Y * 2; 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... |