結果

問題 No.16 累乗の加算
ユーザー なおなお
提出日時 2014-12-12 09:39:13
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 97 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 68,952 KB
最終ジャッジ日時 2023-09-02 14:17:13
合計ジャッジ時間 6,316 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 326 ms
68,816 KB
testcase_01 AC 321 ms
68,724 KB
testcase_02 AC 348 ms
68,816 KB
testcase_03 AC 345 ms
68,952 KB
testcase_04 AC 347 ms
68,808 KB
testcase_05 AC 346 ms
68,840 KB
testcase_06 AC 345 ms
68,948 KB
testcase_07 AC 345 ms
68,740 KB
testcase_08 AC 345 ms
68,736 KB
testcase_09 AC 349 ms
68,808 KB
testcase_10 AC 362 ms
68,896 KB
testcase_11 AC 348 ms
68,928 KB
testcase_12 WA -
testcase_13 AC 314 ms
68,812 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~/ /,$m=1e6+3,$a=1/$`;push@b,$a=($a*$`)%$m for 0..$m;$r+=$b[$_%($m-1)]for<>=~/\S+/g;print$r%$m
0