結果
問題 | No.2714 Amaou |
ユーザー |
![]() |
提出日時 | 2024-04-08 16:04:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 474 bytes |
コンパイル時間 | 2,297 ms |
コンパイル使用メモリ | 204,344 KB |
最終ジャッジ日時 | 2025-02-20 23:07:02 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;int main(){cin.tie(nullptr);ios_base::sync_with_stdio(false);int N, ans=0;cin >> N;vector<string> v = {"akai", "marui", "okii", "umai"};sort(v.begin(), v.end());for (int i=0; i<N; i++){vector<string> w(4);for (int j=0; j<4; j++) cin >> w[j];sort(w.begin(), w.end());ans += (v == w);}cout << ans << endl;return 0;}