結果
| 問題 |
No.688 E869120 and Constructing Array 2
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2018-05-18 22:38:28 |
| 言語 | Perl (5.40.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 156 bytes |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 5,248 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 13:27:19 |
| 合計ジャッジ時間 | 2,909 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 9 TLE * 1 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$k=<>;
while(!($k&1)){
$k>>=1;
++$a;
}
while(1){
$b=int sqrt$k*2;
if($k==$b*($b+1)/2){
print$a+$b+1,$/,"0 "x$a,"1 "x$b,1;
exit;
}
$k<<=1;
--$a;
}
tails