結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2015-07-05 22:35:17 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 160 bytes |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 23:15:49 |
| 合計ジャッジ時間 | 1,595 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
@F=(3,5,17,257,65537);
sub f {
my($i,$n)=@_;
if($i==@F){
return $n==0?0:log($n+.1)/log(2)+1|0;
}
return f($i+1,$n)+f($i+1,$n/$F[$i]|0);
}
print f(0,<>)-2
tails