結果

問題 No.2714 Amaou
ユーザー hongrock
提出日時 2024-04-05 21:22:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 614 bytes
コンパイル時間 2,648 ms
コンパイル使用メモリ 205,148 KB
最終ジャッジ日時 2025-02-20 20:42:21
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

#define pb emplace_back
#define mp make_pair
 
using ll = long long;
using pii = pair<int,int>;
 
constexpr int mod = 998244353;
constexpr int inf = 0x3f3f3f3f;
constexpr int N = 2e5 + 10;

void _main(){
  vector<string> a = vector<string>{"akai", "marui", "okii", "umai"};
  int n;
  cin >> n;
  int ans = 0;
  for(int i=0; i<n; ++i){
    vector<string> s(4);
    for(auto &ss : s) cin >> ss;
    sort(s.begin(), s.end());
    if(a == s)  ++ans;
  }
  cout << ans << '\n';
}

int main(){
  ios::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  _main();
  return 0;
}
0