結果
問題 |
No.1642 Registration
|
ユーザー |
|
提出日時 | 2021-11-11 23:07:28 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 5,760 KB |
最終ジャッジ日時 | 2024-11-23 21:36:55 |
合計ジャッジ時間 | 762 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict; use warnings; use utf8; my $input = <STDIN>; my $str = ""; chomp $input; my $length = length $input; if ($length == 2) { $str = "0" . $input; } elsif ($length == 1) { $str = "00" . $input; } else { $str = $input; } print "$str\n";