結果

問題 No.313 π
ユーザー fumofumofunifumofumofuni
提出日時 2021-09-16 02:49:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 494 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 76,612 KB
最終ジャッジ日時 2023-09-11 12:46:57
合計ジャッジ時間 5,427 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
76,172 KB
testcase_01 AC 79 ms
76,452 KB
testcase_02 AC 81 ms
76,224 KB
testcase_03 AC 79 ms
76,388 KB
testcase_04 AC 77 ms
76,428 KB
testcase_05 AC 78 ms
76,520 KB
testcase_06 AC 78 ms
76,412 KB
testcase_07 AC 80 ms
76,228 KB
testcase_08 AC 82 ms
76,344 KB
testcase_09 AC 79 ms
76,304 KB
testcase_10 AC 79 ms
76,528 KB
testcase_11 AC 82 ms
76,404 KB
testcase_12 AC 80 ms
76,320 KB
testcase_13 AC 80 ms
76,428 KB
testcase_14 AC 79 ms
76,408 KB
testcase_15 AC 80 ms
76,404 KB
testcase_16 AC 79 ms
76,520 KB
testcase_17 AC 79 ms
76,304 KB
testcase_18 AC 79 ms
76,176 KB
testcase_19 AC 79 ms
76,248 KB
testcase_20 AC 81 ms
76,424 KB
testcase_21 AC 82 ms
76,472 KB
testcase_22 AC 81 ms
76,352 KB
testcase_23 AC 81 ms
76,180 KB
testcase_24 AC 80 ms
76,288 KB
testcase_25 AC 81 ms
76,328 KB
testcase_26 AC 79 ms
76,224 KB
testcase_27 AC 80 ms
76,324 KB
testcase_28 AC 80 ms
76,572 KB
testcase_29 AC 82 ms
76,612 KB
testcase_30 AC 80 ms
76,236 KB
testcase_31 AC 80 ms
76,552 KB
testcase_32 AC 80 ms
76,572 KB
testcase_33 AC 82 ms
76,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=[20104,20063,19892,20011,19874,20199,19898,20163,19956,19841]
t=str(input())
b=[0]*10
b[int(t[0])]+=1
for i in range(2,200002):
    b[int(t[i])]+=1
ans1=0
ans2=0
for i in range(10):
    if b[i]>a[i]:
        ans1=i
    if b[i]<a[i]:
        ans2=i
print(ans1,ans2,' ')
0