結果
問題 | No.2714 Amaou |
ユーザー |
|
提出日時 | 2024-04-05 21:27:20 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 629 bytes |
コンパイル時間 | 1,308 ms |
コンパイル使用メモリ | 108,000 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 01:38:50 |
合計ジャッジ時間 | 2,068 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int main () { int N; cin >> N; vector<string> amaou = { "akai", "marui", "okii", "umai", }; sort(amaou.begin(), amaou.end()); int ans = 0; for (int _ = 0; _ < N; _++) { vector<string> strawberry; for (int _ = 0; _ < 4; _++) { string s; cin >> s; strawberry.push_back(s); } sort(strawberry.begin(), strawberry.end()); if (amaou == strawberry) { ans++; } } cout << ans << "\n"; }