結果
| 問題 |
No.313 π
|
| コンテスト | |
| ユーザー |
spihill
|
| 提出日時 | 2021-01-09 16:39:10 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 1,810 ms |
| コンパイル使用メモリ | 193,828 KB |
| 最終ジャッジ日時 | 2025-01-17 15:44:43 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 32 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
vector<int> cnt{20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841};
string s; cin >> s;
for (auto c : s) {
if (!isdigit(c)) continue;
cnt[c-'0']--;
}
for (int i = 0; i < 10; i++) if (cnt[i] == -1) cout << i << ' ';
for (int i = 0; i < 10; i++) if (cnt[i] == 1) cout << endl;
}
spihill