結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2019-03-26 15:59:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-10-11 01:27:01 |
合計ジャッジ時間 | 3,607 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
S = input()cnt = {'3': 20011, '.': 1, '1': 20063, '4': 19874, '5': 20199,'9': 19841, '2': 19892, '6': 19898, '8': 19956, '7': 20163, '0': 20104}for c in S:cnt[c] -= 1cnt = sorted(cnt.items(), key=lambda x: x[1])print(cnt[0][0], cnt[-1][0])