結果

問題 No.688 E869120 and Constructing Array 2
ユーザー %20%20
提出日時 2018-05-22 23:23:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 121 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 4,584 KB
最終ジャッジ日時 2023-09-21 20:41:22
合計ジャッジ時間 1,138 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,504 KB
testcase_01 AC 3 ms
4,584 KB
testcase_02 AC 2 ms
4,408 KB
testcase_03 AC 3 ms
4,532 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,500 KB
testcase_06 AC 2 ms
4,508 KB
testcase_07 AC 2 ms
4,572 KB
testcase_08 AC 3 ms
4,504 KB
testcase_09 AC 2 ms
4,544 KB
testcase_10 AC 2 ms
4,524 KB
testcase_11 AC 2 ms
4,500 KB
testcase_12 AC 3 ms
4,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$K=<>;
for$a(1..30){
	for$b(0..30-$a){
		if($a*($a-1)/2*2**$b==$K){
			exit!print$a+$b,"\n@{[(1)x$a,(0)x$b]}\n"
		}
	}
}
0