結果
問題 | No.313 π |
ユーザー |
|
提出日時 | 2022-10-17 14:10:15 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 512 bytes |
コンパイル時間 | 2,080 ms |
コンパイル使用メモリ | 194,976 KB |
最終ジャッジ日時 | 2025-02-08 07:35:42 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i = 0; i < (n); i++)using namespace std;typedef long long ll;int main(){cin.tie(0);ios::sync_with_stdio(0);string s; cin >> s;vector<int> cnt = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841};for(char c : s) if(isdigit(c)) cnt[c - '0']--;int ma = max_element(cnt.begin(), cnt.end()) - cnt.begin();int mi = min_element(cnt.begin(), cnt.end()) - cnt.begin();cout << mi << " " << ma << endl;}