結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
Today03
|
| 提出日時 | 2024-04-05 21:21:30 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 529 bytes |
| コンパイル時間 | 2,480 ms |
| コンパイル使用メモリ | 205,628 KB |
| 最終ジャッジ日時 | 2025-02-20 20:40:14 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e9 + 10;
const ll INFL = 4e18;
int main() {
vector<string> info = {"akai", "marui", "okii", "umai"};
sort(info.begin(), info.end());
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 == info) {
ans++;
}
}
cout << ans << endl;
}
Today03