結果
| 問題 |
No.313 π
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-12-07 23:57:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 389 bytes |
| コンパイル時間 | 519 ms |
| コンパイル使用メモリ | 55,804 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 18:33:34 |
| 合計ジャッジ時間 | 1,796 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 32 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int cnt[10]={ 20105, 20063, 19891, 20011, 19874, 20199, 19898, 20163, 19955, 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