結果

問題 No.164 ちっちゃくないよ!!
ユーザー titiatitia
提出日時 2022-04-20 00:48:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-08-30 23:03:51
合計ジャッジ時間 1,578 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 15 ms
7,728 KB
testcase_02 AC 15 ms
7,924 KB
testcase_03 AC 15 ms
7,728 KB
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 82 ms
7,920 KB
testcase_06 AC 71 ms
7,780 KB
testcase_07 AC 40 ms
7,732 KB
testcase_08 AC 69 ms
7,820 KB
testcase_09 AC 69 ms
7,768 KB
testcase_10 AC 18 ms
7,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
ANS=1<<100

for i in range(N):
    S=input()
    while S[0]=="0":
        S=S[1:]

    score=1<<100

    for i in range(2,37):
        try:
            k=int(S,i)
            #print(i,k)
            score=min(score,k)
        except:
            continue
    ANS=min(ANS,score)

print(ANS)
0