結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-15 09:51:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 539 bytes |
| コンパイル時間 | 2,090 ms |
| コンパイル使用メモリ | 202,072 KB |
| 最終ジャッジ日時 | 2025-02-21 02:07:24 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
const std::string g[4] = {"akai", "marui", "okii", "umai"};
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int ans = 0;
int N;
std::cin >> N;
for (int i = 0; i < N; i++) {
std::map<std::string, bool> f;
for (int j = 0; j < 4; j++) {
std::string s;
std::cin >> s;
f[s] = 1;
}
int cnt = 0;
for (int j = 0; j < 4; j++) {
if (f[g[j]]) {
cnt++;
}
}
ans += cnt == 4;
}
std::cout << ans << '\n';
return 0;
}