結果
問題 | No.1237 EXP Multiple! |
ユーザー | googol_S0 |
提出日時 | 2020-09-25 21:23:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 1,189 ms |
コンパイル使用メモリ | 86,844 KB |
実行使用メモリ | 105,168 KB |
最終ジャッジ日時 | 2023-09-10 14:50:47 |
合計ジャッジ時間 | 3,938 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,112 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | RE | - |
testcase_06 | WA | - |
testcase_07 | RE | - |
testcase_08 | WA | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 107 ms
104,480 KB |
testcase_14 | AC | 105 ms
104,544 KB |
testcase_15 | AC | 107 ms
104,700 KB |
testcase_16 | AC | 108 ms
104,812 KB |
testcase_17 | AC | 108 ms
104,700 KB |
testcase_18 | AC | 106 ms
104,752 KB |
testcase_19 | AC | 103 ms
103,864 KB |
ソースコード
N=int(input()) A=list(map(int,input().split())) F=[1,1,2,6] P=1 for i in range(N): if A[i]>3: print(-1) exit() P*=pow(A[i],F[A[i]]) if P>10**9+7: print(-1) exit() print((10**9+7)%P)