結果

問題 No.313 π
ユーザー spihill
提出日時 2021-01-09 16:40:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 368 bytes
コンパイル時間 2,103 ms
コンパイル使用メモリ 193,572 KB
最終ジャッジ日時 2025-01-17 15:44:51
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 << i << endl;
}
0