結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2019-12-03 08:35:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 52 ms / 5,000 ms |
コード長 | 698 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-11-26 05:58:39 |
合計ジャッジ時間 | 3,662 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
import mathimport syssys.setrecursionlimit(10 ** 6)int1 = lambda x: int(x) - 1p2D = lambda x: print(*x, sep="\n")def MI(): return map(int, sys.stdin.readline().split())def LI(): return list(map(int, sys.stdin.readline().split()))def LLI(rows_number): return [LI() for _ in range(rows_number)]def main():correct = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]cnt = [0] * 10s = input()zero = ord("0")for c in s:if c == ".": continuei = ord(c) - zerocnt[i] += 1for i in range(10):if cnt[i] < correct[i]:ok = iif cnt[i] > correct[i]:ng = iprint(ng,ok)main()