結果
問題 |
No.313 π
|
ユーザー |
![]() |
提出日時 | 2019-08-17 15:33:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 456 bytes |
コンパイル時間 | 1,763 ms |
コンパイル使用メモリ | 168,900 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 19:51:27 |
合計ジャッジ時間 | 3,665 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { int counts[] = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841}; vector<int> ans(2); string s; cin >> s; for (int i = 0; i < 10; i++) { int cnt = count(s.begin(), s.end(), '0' + i); if (cnt < counts[i]) ans[0] = i; if (cnt > counts[i]) ans[1] = i; } cout << ans[0] << " " << ans[1]; return 0; }