結果

問題 No.2600 Avator Height
ユーザー tailstails
提出日時 2024-01-12 21:39:26
言語 Perl
(5.38.2)
結果
AC  
実行時間 414 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 704 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 52,736 KB
最終ジャッジ日時 2024-01-12 21:39:46
合計ジャッジ時間 12,288 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
18,304 KB
testcase_01 AC 378 ms
52,736 KB
testcase_02 AC 390 ms
52,736 KB
testcase_03 AC 370 ms
52,736 KB
testcase_04 AC 373 ms
52,736 KB
testcase_05 AC 398 ms
52,736 KB
testcase_06 AC 372 ms
52,736 KB
testcase_07 AC 375 ms
52,736 KB
testcase_08 AC 408 ms
52,736 KB
testcase_09 AC 375 ms
52,736 KB
testcase_10 AC 380 ms
52,736 KB
testcase_11 AC 414 ms
52,736 KB
testcase_12 AC 382 ms
52,736 KB
testcase_13 AC 380 ms
52,736 KB
testcase_14 AC 371 ms
52,736 KB
testcase_15 AC 377 ms
52,736 KB
testcase_16 AC 395 ms
52,736 KB
testcase_17 AC 378 ms
52,736 KB
testcase_18 AC 375 ms
52,736 KB
testcase_19 AC 411 ms
52,736 KB
testcase_20 AC 370 ms
52,736 KB
testcase_21 AC 379 ms
52,736 KB
testcase_22 AC 406 ms
52,736 KB
testcase_23 AC 384 ms
52,736 KB
testcase_24 AC 310 ms
52,736 KB
testcase_25 AC 340 ms
52,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$m=998244353;
@r=(1,1);
@e=(1,3);
for(2..2e5){
	$r[$_]=($r[$_-1]+$r[$_-2])%$m;
	$e[$_]=($e[$_-1]+$e[$_-2])%$m;
}
<>;
for(<>){
	print+($r[$_-1]**2%$m*5%$m-$e[$_-1]**2)%$m,$/;
}
0