結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-05 21:22:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 690 bytes |
| コンパイル時間 | 4,823 ms |
| コンパイル使用メモリ | 261,824 KB |
| 最終ジャッジ日時 | 2025-02-20 20:42:12 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll = long long;
int n;
vector<vector<string>> S;
void solve(){
vector<string> s = {
"akai",
"marui",
"okii",
"umai"
};
sort(s.begin(), s.end());
int ans = 0;
for(auto &i: S){
sort(i.begin(), i.end());
if(i == s)
ans++;
}
cout << ans << endl;
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> n;
S = vector<vector<string>>(n, vector<string>(4));
for(auto &i: S)
for(auto &j: i)
cin >> j;
solve();
}