結果

問題 No.2714 Amaou
ユーザー shojin
提出日時 2024-05-01 19:17:47
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 4,826 ms
コンパイル使用メモリ 282,044 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 01:25:15
合計ジャッジ時間 5,863 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
  int N;
  cin >> N;
  
  int ans = 0;
  while(N--){
    string S[4];
    for(auto &x : S) cin >> x;
    sort(S, S + 4);
    if(S[0] == "akai" && S[1] == "marui" && S[2] == "okii" && S[3] == "umai") ans++;
  }
  
  cout << ans << '\n';
}
0