結果

問題 No.1942 Leading zero
ユーザー ころまるぼーい
提出日時 2023-04-28 17:08:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-17 16:48:49
合計ジャッジ時間 495 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

count = int(input())
for i in range(count):
    all_zero = True
    number = input()
    for j in list(number):
        if int(j) > 0:
            all_zero = False
            break
        else:
            number = number[1:]
    else:
        if all_zero:
            print(0)
        else:
            print(number)
0