結果
| 問題 | No.313 π |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-05 16:09:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 5,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 81,776 KB |
| 実行使用メモリ | 75,904 KB |
| 最終ジャッジ日時 | 2024-10-05 16:09:18 |
| 合計ジャッジ時間 | 3,806 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)