結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-05 12:12:30 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 852 bytes |
| コンパイル時間 | 615 ms |
| コンパイル使用メモリ | 30,080 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-05 12:12:32 |
| 合計ジャッジ時間 | 1,723 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
//No.2714 Amaou
#include <stdio.h>
#include <string.h>
int main(void){
int N;
scanf("%d", &N);
char A[N][4][6];
for(int i = 0; i < N; i++){
scanf("%5s %5s %5s %5s", A[i][0], A[i][1], A[i][2], A[i][3]);
}
int cnt = 0;
for(int i = 0; i < N; i++){
int akai = 0, marui = 0, okii = 0, umai = 0;
for(int j = 0; j < 4; j++){
if(strcmp(A[i][j], "akai") == 0){
akai = 1;
}
if(strcmp(A[i][j], "marui") == 0){
marui = 1;
}
if(strcmp(A[i][j], "okii") == 0){
okii = 1;
}
if(strcmp(A[i][j], "umai") == 0){
umai = 1;
}
}
if((akai + marui + okii + umai) == 4){
cnt++;
}
}
printf("%d\n", cnt);
return 0;
}