# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
395146 | rainboy | Marko (COCI15_marko) | C11 | 4 ms | 1612 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <string.h>
#define N 1000
#define L 1000
int code[] = { 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9 };
int main() {
static char ss[N][L + 1], s[L + 1];
int n, l, i, cnt;
scanf("%d", &n);
for (i = 0; i < n; i++) {
int h;
scanf("%s", ss[i]), l = strlen(ss[i]);
for (h = 0; h < l; h++)
ss[i][h] = code[ss[i][h] - 'a'] + '0';
}
scanf("%s", s), l = strlen(s);
cnt = 0;
for (i = 0; i < n; i++)
if (strcmp(ss[i], s) == 0)
cnt++;
printf("%d\n", cnt);
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |