結果
問題 | No.2714 Amaou |
ユーザー |
|
提出日時 | 2024-04-18 20:34:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 651 bytes |
コンパイル時間 | 2,533 ms |
コンパイル使用メモリ | 204,672 KB |
最終ジャッジ日時 | 2025-02-21 03:06:03 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i, n) for (int i = 0; i < int(n); i++)#define rev(i, n) for (int i = (n - 1); i >= 0; i--)#define all(x) (x).begin(), (x).end()void YesNo(bool f) {cout << (f ? "Yes\n" : "No\n");};void fast_io() {cin.tie(nullptr);ios_base::sync_with_stdio(false);}signed main(void) {fast_io();int N;cin >> N;vector<string> s = {"akai", "marui", "okii", "umai"};int ans = 0;rep(x, N) {vector<string> t(4);rep(i, 4) {cin >> t[i];}sort(all(t));ans += (s == t);}cout << ans << endl;return 0;}