Submission #211323

# Submission time Handle Problem Language Result Execution time Memory
211323 2020-03-20T04:32:59 Z jh2014 None (KOI16_room) C
0 / 100
4 ms 384 KB
#include <stdio.h>
int n, k, cnt, d[7][2];
int main() {
	int x, y;
 	
	scanf("%d %d", &n, &k);
	for (int i = 1; i <= n; i++) {
		scanf("%d %d", &y, &x);
		if (d[x][y] == 0) d[x][y] = k, cnt++;
		d[x][y]--;
	} printf("%d", cnt);
}

Compilation message

room.c: In function 'main':
room.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &n, &k);
  ^~~~~~~~~~~~~~~~~~~~~~
room.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d", &y, &x);
   ^~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -