結果
問題 |
No.313 π
|
ユーザー |
![]() |
提出日時 | 2019-04-19 17:35:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 5,000 ms |
コード長 | 523 bytes |
コンパイル時間 | 2,177 ms |
コンパイル使用メモリ | 193,284 KB |
最終ジャッジ日時 | 2025-01-07 02:36:04 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
#include<bits/stdc++.h> using namespace std; using Int = long long; template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;} //INSERT ABOVE HERE signed main(){ string s; cin>>s; int cnt[10]={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841}; for(char c:s) if(isdigit(c)) 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; return 0; }