結果
問題 | No.2997 Making YuzuKizu |
ユーザー |
|
提出日時 | 2024-12-22 10:58:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 1,039 bytes |
コンパイル時間 | 6,828 ms |
コンパイル使用メモリ | 317,740 KB |
実行使用メモリ | 5,424 KB |
最終ジャッジ日時 | 2024-12-22 10:58:26 |
合計ジャッジ時間 | 7,202 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using ll = long long;using ull = unsigned long long;using mint = atcoder::modint998244353;using maxt = atcoder::modint1000000007;vector<ll> Era(int N) {vector<ll> ans(0, 0);vector<bool> isprime(N + 1, true);isprime.at(1) = false;for(int i = 1; i <= N; i++) {if(isprime.at(i)) {ans.push_back(i);for(int j = 2 * i; j <= N; j += i) {isprime.at(j) = false;}}}return ans;}ll POW(ll a, int N) {if(N == 1) {return a;}ll ans = POW(a, N / 2) * POW(a, N / 2);if(N % 2 == 1) {ans *= a;}return ans;}//ライブラリここまでint main() {string S;cin >> S;map<char, int> cnt;for(char o : S) {cnt[o]++;}cout << min(cnt['a'], min(cnt['k'], min(cnt['i'], min(cnt['r'], min(cnt['u'], cnt['y']))))) << ' ' << min(cnt['a'] / 2, min(cnt['k'], min(cnt['i'],cnt['r']))) << ' ' << min(cnt['k'], min(cnt['i'], min(cnt['u'] / 3, min(cnt['y'], cnt['z'] / 2)))) << endl;}