結果

問題 No.16 累乗の加算
ユーザー なおなお
提出日時 2014-12-12 08:48:24
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 98 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 68,900 KB
最終ジャッジ日時 2023-09-02 14:16:43
合計ジャッジ時間 6,286 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 329 ms
68,716 KB
testcase_01 AC 325 ms
68,816 KB
testcase_02 AC 355 ms
68,720 KB
testcase_03 AC 353 ms
68,824 KB
testcase_04 AC 351 ms
68,768 KB
testcase_05 AC 351 ms
68,852 KB
testcase_06 AC 347 ms
68,768 KB
testcase_07 AC 353 ms
68,872 KB
testcase_08 AC 349 ms
68,772 KB
testcase_09 AC 352 ms
68,832 KB
testcase_10 AC 350 ms
68,828 KB
testcase_11 AC 355 ms
68,724 KB
testcase_12 WA -
testcase_13 AC 318 ms
68,668 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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