結果

問題 No.2078 魔抜けなパープル
ユーザー tailstails
提出日時 2022-10-04 15:51:12
言語 Perl
(5.38.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 555 ms
コンパイル使用メモリ 5,404 KB
実行使用メモリ 5,284 KB
最終ジャッジ日時 2023-08-28 17:56:20
合計ジャッジ時間 1,322 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,284 KB
testcase_01 AC 6 ms
5,224 KB
testcase_02 AC 6 ms
5,180 KB
testcase_03 AC 6 ms
5,168 KB
testcase_04 AC 6 ms
5,220 KB
testcase_05 AC 6 ms
5,100 KB
testcase_06 AC 6 ms
5,284 KB
testcase_07 AC 6 ms
5,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
map{
	($x,$a)=glob;
	$c=$x?6+int$a/sqrt$x:$a+1;
	print+(sort{$a-$b}map--$c>0?$c*(($k=int$a/$c)**2+$x)+$a%$c*($k*2+1):1e9,0..39)[0],$/;
}<>
0