結果

問題 No.689 E869120 and Constructing Array 3
ユーザー tailstails
提出日時 2018-05-18 23:11:25
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 214 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 4,592 KB
最終ジャッジ日時 2023-09-10 23:10:57
合計ジャッジ時間 1,828 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,540 KB
testcase_01 AC 3 ms
4,412 KB
testcase_02 AC 2 ms
4,536 KB
testcase_03 AC 2 ms
4,576 KB
testcase_04 AC 2 ms
4,572 KB
testcase_05 AC 3 ms
4,492 KB
testcase_06 AC 3 ms
4,412 KB
testcase_07 AC 3 ms
4,496 KB
testcase_08 AC 2 ms
4,592 KB
testcase_09 AC 3 ms
4,512 KB
testcase_10 AC 2 ms
4,580 KB
testcase_11 AC 2 ms
4,516 KB
testcase_12 AC 3 ms
4,432 KB
testcase_13 AC 3 ms
4,436 KB
testcase_14 AC 3 ms
4,560 KB
testcase_15 AC 3 ms
4,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

@p=qw{
5000 4887
4999 4902
4997 4910
4998 4925
4994 4935
4993 4938
4987 4954
4990 4959
4989 4978
4766 5207
};
$k=<>;
while($k>0){
	$s=int sqrt$k;
	push@a,@p[($i)x$s,($i+1)x$s];
	$i+=2;
	$k-=$s*$s;
}
print@a."\n@a"
0