結果

問題 No.1942 Leading zero
ユーザー nouka28nouka28
提出日時 2022-05-20 21:44:13
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 280 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 81,732 KB
実行使用メモリ 65,912 KB
最終ジャッジ日時 2023-10-20 12:11:26
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N=int(input())
for i in range(N):
    T=list(input())
    i=-1
    if T.count("0")==len(T):
        print(0)
    else:
        
        while True:
            i+=1
            if T[i]!="0":
                break
            else:
                T.pop()
        print("".join(T))
0