結果
問題 | No.1237 EXP Multiple! |
ユーザー | tonyu0 |
提出日時 | 2020-09-25 23:35:30 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 743 ms |
コンパイル使用メモリ | 10,696 KB |
実行使用メモリ | 29,868 KB |
最終ジャッジ日時 | 2023-09-10 17:09:47 |
合計ジャッジ時間 | 4,912 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,832 KB |
testcase_01 | AC | 63 ms
23,588 KB |
testcase_02 | AC | 81 ms
29,192 KB |
testcase_03 | AC | 82 ms
29,648 KB |
testcase_04 | AC | 85 ms
29,868 KB |
testcase_05 | AC | 55 ms
11,840 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, *a = map(int, open(0).read().split()) mx = max(a) mn = min(a) mod = 10 ** 9 + 7 if mx > 3: print(mod) elif mn == 0: print(-1) else: b = [0, 1, 16, 729] ans = 1 for c in a: ans *= b[c] if ans > mod: print(mod) print(mod % ans)