結果

問題 No.1528 Not 1
ユーザー tailstails
提出日時 2021-06-04 20:14:08
言語 Perl
(5.38.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 458 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 11,496 KB
最終ジャッジ日時 2023-08-12 08:53:57
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,604 KB
testcase_01 AC 32 ms
4,620 KB
testcase_02 AC 12 ms
4,448 KB
testcase_03 AC 15 ms
4,448 KB
testcase_04 AC 41 ms
10,504 KB
testcase_05 AC 8 ms
5,436 KB
testcase_06 AC 22 ms
4,640 KB
testcase_07 AC 33 ms
4,612 KB
testcase_08 AC 21 ms
7,356 KB
testcase_09 AC 8 ms
4,584 KB
testcase_10 AC 17 ms
4,588 KB
testcase_11 AC 3 ms
4,572 KB
testcase_12 AC 2 ms
4,580 KB
testcase_13 AC 3 ms
4,600 KB
testcase_14 AC 3 ms
4,652 KB
testcase_15 AC 3 ms
4,536 KB
testcase_16 AC 2 ms
4,444 KB
testcase_17 AC 3 ms
4,536 KB
testcase_18 AC 37 ms
4,464 KB
testcase_19 AC 48 ms
11,496 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$\=$,=$";
$n=<>;
if($n<3){
	print 1;
	exit;
}
if($n==3||$n==5){
	print -1;
	exit;
}
if($n&1){
	print 3,6,2,4,map $_*2, 4..$n/2;
	exit;
}
{
	print $_*2 for 1..$n/2;
	exit;
}
0