結果
問題 | No.1237 EXP Multiple! |
ユーザー | takakin |
提出日時 | 2020-10-24 12:44:24 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 10,520 KB |
実行使用メモリ | 31,684 KB |
最終ジャッジ日時 | 2023-09-28 20:22:57 |
合計ジャッジ時間 | 4,896 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,816 KB |
testcase_01 | AC | 69 ms
23,764 KB |
testcase_02 | AC | 88 ms
29,092 KB |
testcase_03 | AC | 88 ms
31,684 KB |
testcase_04 | AC | 89 ms
30,612 KB |
testcase_05 | AC | 62 ms
12,016 KB |
testcase_06 | TLE | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[int(i) for i in input().split()] mod=10**9+7 if max(A)>=4: print(mod) elif min(A)==0: print(-1) else: F=[1,1,2,6] cur=1 for a in A: cur*=pow(a,F[a]) print(mod%cur)