結果

問題 No.573 a^2[i] = a[i]
ユーザー tailstails
提出日時 2017-10-06 23:56:38
言語 Raku
(rakudo v2024.02)
結果
TLE  
実行時間 -
コード長 141 bytes
コンパイル時間 865 ms
コンパイル使用メモリ 132,884 KB
実行使用メモリ 143,016 KB
最終ジャッジ日時 2023-08-16 04:51:35
合計ジャッジ時間 25,272 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 384 ms
132,796 KB
testcase_01 AC 391 ms
131,912 KB
testcase_02 AC 382 ms
132,096 KB
testcase_03 AC 380 ms
132,156 KB
testcase_04 AC 382 ms
132,100 KB
testcase_05 AC 380 ms
132,092 KB
testcase_06 AC 379 ms
132,200 KB
testcase_07 AC 383 ms
132,052 KB
testcase_08 AC 384 ms
132,456 KB
testcase_09 AC 380 ms
132,288 KB
testcase_10 AC 386 ms
132,456 KB
testcase_11 AC 397 ms
132,312 KB
testcase_12 AC 386 ms
132,096 KB
testcase_13 AC 385 ms
132,048 KB
testcase_14 AC 379 ms
132,196 KB
testcase_15 AC 380 ms
132,152 KB
testcase_16 AC 383 ms
132,312 KB
testcase_17 AC 383 ms
132,204 KB
testcase_18 AC 383 ms
132,160 KB
testcase_19 AC 379 ms
132,292 KB
testcase_20 AC 382 ms
132,028 KB
testcase_21 AC 390 ms
132,180 KB
testcase_22 AC 386 ms
132,208 KB
testcase_23 AC 395 ms
132,396 KB
testcase_24 AC 386 ms
132,232 KB
testcase_25 AC 384 ms
132,456 KB
testcase_26 AC 389 ms
132,348 KB
testcase_27 AC 396 ms
132,208 KB
testcase_28 AC 381 ms
132,536 KB
testcase_29 AC 386 ms
132,432 KB
testcase_30 AC 384 ms
132,272 KB
testcase_31 AC 382 ms
132,432 KB
testcase_32 AC 388 ms
132,592 KB
testcase_33 AC 394 ms
132,876 KB
testcase_34 AC 399 ms
133,028 KB
testcase_35 AC 414 ms
133,268 KB
testcase_36 AC 409 ms
133,288 KB
testcase_37 AC 413 ms
133,516 KB
testcase_38 AC 410 ms
133,564 KB
testcase_39 AC 415 ms
133,904 KB
testcase_40 AC 424 ms
134,084 KB
testcase_41 AC 433 ms
134,524 KB
testcase_42 AC 463 ms
134,460 KB
testcase_43 AC 473 ms
135,036 KB
testcase_44 AC 529 ms
135,136 KB
testcase_45 AC 652 ms
138,528 KB
testcase_46 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

my$m=10**9+7;
my$n=get;
my$c=0;
my$d=1;
for 1..$n -> $i {
	$d=$d*($n-$i+1)*$i.expmod(-1,$m)%$m;
	$c=($c+$i.expmod($n-$i,$m)*$d)%$m;
}
say $c
0