結果
問題 | No.1237 EXP Multiple! |
ユーザー | toyuzuko |
提出日時 | 2020-09-27 00:11:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 10,688 KB |
実行使用メモリ | 30,600 KB |
最終ジャッジ日時 | 2023-09-12 12:59:34 |
合計ジャッジ時間 | 4,873 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,992 KB |
testcase_01 | AC | 64 ms
23,824 KB |
testcase_02 | AC | 82 ms
29,172 KB |
testcase_03 | AC | 80 ms
30,160 KB |
testcase_04 | AC | 87 ms
30,600 KB |
testcase_05 | AC | 52 ms
11,288 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 | -- | - |
ソースコード
N = int(input()) A = list(map(int, input().split())) if min(A) == 0: print(-1) elif max(A) >= 4: print(1000000007) else: res = 1 p = [1, 4, 729] for i in range(N): res *= p[A[i] - 1] print(1000000007 % res)