結果
問題 | No.2714 Amaou |
ユーザー |
|
提出日時 | 2024-04-05 21:23:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 804 bytes |
コンパイル時間 | 2,359 ms |
コンパイル使用メモリ | 178,204 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 01:33:12 |
合計ジャッジ時間 | 2,722 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;using vl = vector<long long>;using vb = vector<bool>;#define REP(i, s, n) for (int i = (int)(s); i < (int)(n); i++)#define PER(i, n, s) for (int i = (int)(n)-1; i >= (int)(s); i--)#define INT(n) int n;cin>>n;#define LL(n) long long n;cin>>n;#define STR(s) string s;cin>>s;#define VLL(a, n) vector<long long>a(n);for(int i=0;i<(int)(n);i++){cin>>a[i];}#define VSTR(a, n) vector<string>a(n);for(int i=0;i<(int)(n);i++){cin>>a[i];}int main(){LL(n);vector<string>s(4);vector<string> amaou={"akai","marui","okii","umai"};sort(amaou.begin(),amaou.end());ll cnt=0;REP(i,0,n){REP(j,0,4)cin>>s[j];sort(s.begin(),s.end());if(s==amaou)cnt++;}cout<<cnt<<endl;}