結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
nonon
|
| 提出日時 | 2024-04-06 08:33:17 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 378 bytes |
| コンパイル時間 | 2,915 ms |
| コンパイル使用メモリ | 204,252 KB |
| 最終ジャッジ日時 | 2025-02-20 22:28:14 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const vector<string> amaou = {"akai", "marui", "okii", "umai"};
int main () {
int N;
cin >> N;
int ans = 0;
for (int i = 0; i < N; i++)
{
vector<string> S(4);
for(int j = 0; j < 4; j++) cin >> S[j];
sort(S.begin(), S.end());
if (S == amaou) ans++;
}
cout << ans << endl;
}
nonon