結果
| 問題 | No.2714 Amaou |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2024-07-04 16:14:21 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 1,573 ms |
| コンパイル使用メモリ | 196,940 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-26 00:06:06 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
int main() {
int N;
cin >> N;
vector<vector<string>> s(N);
rep(i, N) {
string w;
rep(j, 4) {
cin >> w;
s[i].push_back(w);
}
}
vector<string> t{"akai", "marui", "okii", "umai"};
sort(t.begin(), t.end());
int ans = 0;
rep(i, N) {
sort(s[i].begin(), s[i].end());
if(s[i] == t) ans++;
}
cout << ans << endl;
}
forest3