結果

問題 No.1942 Leading zero
ユーザー YoureinYourein
提出日時 2022-05-20 21:26:22
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 10,032 KB
最終ジャッジ日時 2023-10-20 11:42:23
合計ジャッジ時間 968 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
for _ in range(n):
    s = input()
    
    while len(s) > 1:
        if s[0] == '0':
            s = s[1:]
        else:
            break

    print(s)
0