結果

問題 No.1237 EXP Multiple!
ユーザー tailstails
提出日時 2020-09-26 13:14:03
言語 Perl
(5.38.0)
結果
AC  
実行時間 564 ms / 2,000 ms
コード長 66 bytes
コンパイル時間 880 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 48,204 KB
最終ジャッジ日時 2023-09-11 09:30:27
合計ジャッジ時間 9,408 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,084 KB
testcase_01 AC 396 ms
35,368 KB
testcase_02 AC 542 ms
46,880 KB
testcase_03 AC 564 ms
47,548 KB
testcase_04 AC 352 ms
48,204 KB
testcase_05 AC 329 ms
46,436 KB
testcase_06 AC 326 ms
46,448 KB
testcase_07 AC 324 ms
46,324 KB
testcase_08 AC 327 ms
46,344 KB
testcase_09 AC 326 ms
46,344 KB
testcase_10 AC 329 ms
46,508 KB
testcase_11 AC 331 ms
46,492 KB
testcase_12 AC 328 ms
46,452 KB
testcase_13 AC 327 ms
46,440 KB
testcase_14 AC 328 ms
46,388 KB
testcase_15 AC 326 ms
46,448 KB
testcase_16 AC 327 ms
46,416 KB
testcase_17 AC 328 ms
46,420 KB
testcase_18 AC 326 ms
46,500 KB
testcase_19 AC 328 ms
46,344 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "inf" may clash with future reserved word at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

$p=1;<>;map$p*=(0,1,4,729)[$_]//inf,glob<>;print$p>0?(1e9+7)%$p:-1
0