結果

問題 No.1942 Leading zero
ユーザー nouka28
提出日時 2022-05-20 21:44:13
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 280 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 65,024 KB
最終ジャッジ日時 2024-09-20 07:42:36
合計ジャッジ時間 717 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other RE * 1
権限があれば一括ダウンロードができます

ソースコード

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