結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2020-01-01 15:02:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 49 ms / 5,000 ms |
コード長 | 597 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-22 05:20:32 |
合計ジャッジ時間 | 3,671 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from collections import Counter counter = Counter(read().rstrip().decode('utf-8')) pi = {'3': 20011, '.': 1, '1': 20063, '4': 19874, '5': 20199, '9': 19841, '2': 19892, '6': 19898, '8': 19956, '7': 20163, '0': 20104} a,b = None,None # 余分、足りない for i in range(10): w = str(i) if pi[w] > counter[w]: b = i elif pi[w] < counter[w]: a = i print(a,b)