結果
| 問題 |
No.2714 Amaou
|
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2024-04-05 21:23:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 469 bytes |
| コンパイル時間 | 1,115 ms |
| コンパイル使用メモリ | 74,556 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 01:33:05 |
| 合計ジャッジ時間 | 1,694 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#define rep(i, n) for(i = 0; i < n; i++)
using namespace std;
int main() {
int n;
cin >> n;
int ans = 0;
string snuke[4] = {"akai", "marui", "okii", "umai"};
sort(snuke, snuke + 4);
for (int i = 0; i < n; i++) {
string s[4];
cin >> s[0] >> s[1] >> s[2] >> s[3];
sort(s, s + 4);
int j;
rep(j, 4) {
if (s[j] != snuke[j]) break;
}
if (j == 4) ans++;
}
cout << ans << endl;
return 0;
}
startcpp