結果
問題 | No.313 π |
ユーザー |
|
提出日時 | 2020-03-06 06:46:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 5,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 587 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 02:36:54 |
合計ジャッジ時間 | 2,388 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;int cnt[10]={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841};string s;main(){cin>>s;for(int i=0;i<s.size();i++){if(s[i]!='.')cnt[s[i]-'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;}