結果
問題 |
No.313 π
|
ユーザー |
![]() |
提出日時 | 2016-11-17 18:45:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 8 ms / 5,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 1,334 ms |
コンパイル使用メモリ | 158,692 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 03:05:39 |
合計ジャッジ時間 | 3,200 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
#include<bits/stdc++.h> using namespace std; int cnt[10] = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841}; int main(){ string s; cin >> s; for(char c : s){ if(c == '.') continue; cnt[c-'0']--; } for(int i=0;i<10;i++){ if(cnt[i]<0) cout << i << " "; } for(int i=0;i<10;i++){ if(cnt[i]>0) cout << i << endl; } }