結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 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 |
| コンパイル時間 | 23,095 ms |
| コンパイル使用メモリ | 353,364 KB |
| 最終ジャッジ日時 | 2025-02-20 21:11:23 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#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;
}