結果

問題 No.2714 Amaou
ユーザー twooimp2twooimp2
提出日時 2024-04-05 21:49:07
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 682 bytes
コンパイル時間 5,876 ms
コンパイル使用メモリ 300,084 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 02:04:40
合計ジャッジ時間 6,637 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;

void IO(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
}

int main(){
  IO();
  ll n;
  cin>>n;
  ll ans=0;
  for(ll i=0;i<n;i++){
    ll c1=0,c2=0,c3=0,c4=0;
    for(ll j=0;j<4;j++){
      string s;
      cin>>s;
      if(s=="akai"){
        c1++;
      }else if(s=="marui"){
        c2++;
      }else if(s=="okii"){
        c3++;
      }else if(s=="umai"){
        c4++;
      }
    }
    if(c1==1&&c2==1&&c3==1&&c4==1){
      ans++;
    }
  }
  cout<<ans<<endl;
}
0