結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-06 03:35:06 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 2,354 ms |
| コンパイル使用メモリ | 204,784 KB |
| 最終ジャッジ日時 | 2025-02-20 22:22:50 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
const string berry[4]={"akai","marui","okii","umai"};
int main(){
int N;
cin>>N;
int ans=0;
for(int i=0;i<N;i++){
vector<string>S(4);
for(int j=0;j<4;j++){
cin>>S[j];
}
sort(S.begin(),S.end());
bool ok=true;
for(int j=0;j<4;j++){
if(S[j]!=berry[j]){
ok=false;
break;
}
}
if(ok){
ans++;
}
}
cout<<ans<<"\n";
}