結果
問題 | No.313 π |
ユーザー |
|
提出日時 | 2021-09-27 15:16:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 311 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 67,428 KB |
最終ジャッジ日時 | 2024-07-06 10:55:51 |
合計ジャッジ時間 | 2,814 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
from sys import stdin, stdout def main(inp, inps, put): ANSWER = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841] S = inp().rstrip().replace(".", "") counts = [0]*10 for s in S: counts[int(s)] += 1 enough, not_enough = 0, 0 for i, c in enumerate(counts): if(ANSWER[i] > c): not_enough = i elif(ANSWER[i] < c): enough = i print(enough, not_enough) main(stdin.readline, stdin.readlines, stdout.write)