結果

問題 No.313 π
ユーザー hogeover30
提出日時 2015-12-07 23:59:47
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 56,660 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-14 18:33:38
合計ジャッジ時間 1,721 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 4 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int cnt[10]={ 20104, 20063, 19891, 20011, 19874, 20199, 19898, 20163, 19956, 19841, };
int main()
{
    string s; cin>>s;
    for(char c: s) {
        if ('0'<=c and c<='9') {
            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;
}
0