結果
問題 |
No.2714 Amaou
|
ユーザー |
![]() |
提出日時 | 2024-07-04 16:14:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 2,105 ms |
コンパイル使用メモリ | 180,504 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 16:14:24 |
合計ジャッジ時間 | 2,816 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }