結果
問題 | No.2714 Amaou |
ユーザー | Shreyan Ray |
提出日時 | 2024-04-05 21:24:07 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,074 bytes |
コンパイル時間 | 2,204 ms |
コンパイル使用メモリ | 207,752 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 01:34:17 |
合計ジャッジ時間 | 3,233 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long #define INF (int)1e18 #define f first #define s second mt19937_64 RNG(chrono::steady_clock::now().time_since_epoch().count()); void Solve() { int n; cin >> n; int ans = 0; while (n--){ string s[4]; cin >> s[0] >> s[1] >> s[2] >> s[3]; sort(s, s + 4); if (s[0] == "akai" && s[1] == "marui" && s[2] == "okii" && s[3] == "umai") ans++; } cout << ans << "\n"; } int32_t main() { auto begin = std::chrono::high_resolution_clock::now(); ios_base::sync_with_stdio(0); cin.tie(0); int t = 1; // freopen("in", "r", stdin); // freopen("out", "w", stdout); // cin >> t; for(int i = 1; i <= t; i++) { //cout << "Case #" << i << ": "; Solve(); } auto end = std::chrono::high_resolution_clock::now(); auto elapsed = std::chrono::duration_cast<std::chrono::nanoseconds>(end - begin); cerr << "Time measured: " << elapsed.count() * 1e-9 << " seconds.\n"; return 0; }