結果

問題 No.1942 Leading zero
ユーザー Mat_hMat_h
提出日時 2023-03-05 11:58:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2023-10-18 04:49:39
合計ジャッジ時間 748 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,096 KB
testcase_01 AC 29 ms
10,096 KB
testcase_02 AC 76 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def Main():
    n=int(input())
    for _ in range(n):
        s=input()
        for i in range(5):
            if s[i]!="0":
                print(s[i:])
                break
            elif i==4:
                print(0)
                
Main()
0