結果

問題 No.873 バイナリ、ヤバいなり!w
ユーザー tails
提出日時 2019-09-02 19:17:04
言語 Perl
(5.40.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 228 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-24 06:38:14
合計ジャッジ時間 1,196 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

# cheat??!?!

$x=<>;

while($x-=$%*$%){
	$%=$x-32?sqrt$x:4;
	push@a,$%;
}

for(reverse@a){
	if($_%2){
		print"01"x($_/2),0;
	}else{
		push@E,$_;
	}
}

while($_=pop@E){
	print"01"x($_/2);
	if($_=shift@E){
		print"10"x($_/2);
	}
}
0