結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2015-12-06 00:49:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 6 ms / 5,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 656 ms |
コンパイル使用メモリ | 57,600 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 14:56:08 |
合計ジャッジ時間 | 1,708 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
#include <iostream>#include <string>#include <algorithm>using namespace std;int main(){string s;cin >> s;int x[10] = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841};for(char c : s){if(c != '.'){ --x[c - '0']; }}cout << find(x, x + 10, -1) - x << ' ' << find(x, x + 10, 1) - x << '\n';}