結果
| 問題 | No.313 π |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-05 16:09:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 76,160 KB |
| 最終ジャッジ日時 | 2026-04-21 02:50:13 |
| 合計ジャッジ時間 | 3,904 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 |
ソースコード
cnt = {'5': 20199, '7': 20163, '0': 20104, '1': 20063, '3': 20011, '8': 19956, '6': 19898, '2': 19892, '4': 19874, '9': 19841, '.': 1}
from collections import Counter
S = input()
cnt_ = Counter(S)
a, b = None, None
for i in range(10):
i = str(i)
if cnt_[i] < cnt[i]:
b = i
elif cnt_[i] > cnt[i]:
a = i
print(a, b)