結果

問題 No.1942 Leading zero
ユーザー yukster714yukster714
提出日時 2023-04-19 20:05:29
言語 Perl
(5.38.2)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 22:37:57
合計ジャッジ時間 593 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,816 KB
testcase_01 AC 2 ms
6,944 KB
testcase_02 AC 10 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

chomp ($n = <>);
while($n--){
    chomp ($_ = <>);
    if ($ _ eq "00000"){
        print "0";
    } else {
        s/^0*//;
        print;
    }
    print "\n";
}
0