結果

問題 No.313 π
ユーザー 👑 rin204rin204
提出日時 2022-07-04 14:35:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 76,732 KB
最終ジャッジ日時 2023-08-20 21:39:27
合計ジャッジ時間 5,316 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
76,448 KB
testcase_01 AC 84 ms
76,492 KB
testcase_02 AC 80 ms
76,400 KB
testcase_03 AC 82 ms
76,664 KB
testcase_04 AC 82 ms
76,432 KB
testcase_05 AC 81 ms
76,372 KB
testcase_06 AC 82 ms
76,388 KB
testcase_07 AC 82 ms
76,400 KB
testcase_08 AC 83 ms
76,464 KB
testcase_09 AC 82 ms
76,536 KB
testcase_10 AC 83 ms
76,500 KB
testcase_11 AC 83 ms
76,300 KB
testcase_12 AC 82 ms
76,464 KB
testcase_13 AC 81 ms
76,576 KB
testcase_14 AC 81 ms
76,700 KB
testcase_15 AC 82 ms
76,468 KB
testcase_16 AC 83 ms
76,396 KB
testcase_17 AC 82 ms
76,396 KB
testcase_18 AC 83 ms
76,608 KB
testcase_19 AC 86 ms
76,464 KB
testcase_20 AC 83 ms
76,532 KB
testcase_21 AC 81 ms
76,732 KB
testcase_22 AC 81 ms
76,424 KB
testcase_23 AC 81 ms
76,416 KB
testcase_24 AC 83 ms
76,448 KB
testcase_25 AC 81 ms
76,420 KB
testcase_26 AC 81 ms
76,296 KB
testcase_27 AC 83 ms
76,372 KB
testcase_28 AC 84 ms
76,264 KB
testcase_29 AC 83 ms
76,396 KB
testcase_30 AC 81 ms
76,408 KB
testcase_31 AC 81 ms
76,536 KB
testcase_32 AC 81 ms
76,408 KB
testcase_33 AC 81 ms
76,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

cnt = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]

n = input()
cnt2 = [0] * 10
n = n.replace(".", "")
for s in n:
    cnt2[int(s)] += 1

a = -1
b = -1
for i in range(10):
    if cnt2[i] > cnt[i]:
        a = i
    elif cnt2[i] < cnt[i]:
        b = i
print(a, b)
0