結果
| 問題 | No.2714 Amaou |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-03 20:45:23 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 215µs | |
| コード長 | 455 bytes |
| 記録 | |
| コンパイル時間 | 2,974 ms |
| コンパイル使用メモリ | 95,468 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-11 05:45:45 |
| 合計ジャッジ時間 | 4,680 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
int N;
cin >> N;
set<string> amaou = {"akai", "marui", "okii", "umai"};
int count = 0;
for (int i = 0; i < N; ++i) {
set<string> s;
string x;
for (int j = 0; j < 4; ++j) {
cin >> x;
s.insert(x);
}
if (s == amaou)
count++;
}
cout << count << endl;
return 0;
}