結果
| 問題 |
No.313 π
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-12-08 00:10:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 5,000 ms |
| コード長 | 389 bytes |
| コンパイル時間 | 1,493 ms |
| コンパイル使用メモリ | 55,128 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 18:38:03 |
| 合計ジャッジ時間 | 1,918 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 |
ソースコード
#include <iostream>
#include <string>
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 ('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;
}
hogeover30