結果
問題 | No.47 ポケットを叩くとビスケットが2倍 |
ユーザー |
![]() |
提出日時 | 2019-05-29 23:00:44 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 16:02:35 |
合計ジャッジ時間 | 842 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
my $biscuit = <>;chomp ($biscuit);my $count;my $num = 1;if ($biscuit == $num){print "0\n";}else{for ($num = 1; $num < $biscuit; $num *= 2){$num = $num;$count++;}print "$count\n";}