結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
cled0328
|
| 提出日時 | 2024-04-19 21:09:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 452 bytes |
| コンパイル時間 | 1,839 ms |
| コンパイル使用メモリ | 199,712 KB |
| 最終ジャッジ日時 | 2025-02-21 03:27:33 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
vector<vector<string>> s(n,vector<string>(4));
int ans=0;
vector<string> c={"akai","marui","okii","umai"};
for(int i=0;i<n;i++){
int fl=0;
for(int j=0;j<4;j++){
cin>>s[i][j];
for(int k=0;k<4;k++){
if(s[i][j]==c[k])fl+=(1<<k);
}
}
if(fl==15)ans++;
}
cout<<ans<<"\n";
}
cled0328