結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2020-12-18 04:56:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 746 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 82,276 KB |
実行使用メモリ | 53,504 KB |
最終ジャッジ日時 | 2024-09-21 08:54:20 |
合計ジャッジ時間 | 2,793 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
import syssys.setrecursionlimit(10**7)def I(): return int(sys.stdin.readline().rstrip())def MI(): return map(int,sys.stdin.readline().rstrip().split())def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))def LI2(): return list(map(int,sys.stdin.readline().rstrip()))def S(): return sys.stdin.readline().rstrip()def LS(): return list(sys.stdin.readline().rstrip().split())def LS2(): return list(sys.stdin.readline().rstrip())pi_count = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]count = [0]*10S = S()for i in range(10):count[i] = S.count(str(i))for i in range(10):if count[i] > pi_count[i]:ans0 = ielif count[i] < pi_count[i]:ans1 = iprint(ans0,ans1)