結果
| 問題 | No.313 π |
| コンテスト | |
| ユーザー |
はむ吉🐹
|
| 提出日時 | 2015-12-07 17:22:14 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 108 ms / 5,000 ms |
| + 637µs | |
| コード長 | 678 bytes |
| 記録 | |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-27 08:40:10 |
| 合計ジャッジ時間 | 5,974 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 |
ソースコード
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import collections
import string
PI200K = {'0': 20104,
'1': 20063,
'2': 19892,
'3': 20011,
'4': 19874,
'5': 20199,
'6': 19898,
'7': 20163,
'8': 19956,
'9': 19841}
def compare_strings(wrong, correct=PI200K):
wrong_counter = collections.Counter(wrong)
for d in string.digits:
if PI200K[d] < wrong_counter[d]:
before = d
elif PI200K[d] > wrong_counter[d]:
after = d
return [before, after]
def main():
print(" ".join(compare_strings(input())))
if __name__ == "__main__":
main()
はむ吉🐹