結果
| 問題 | No.695 square1001 and Permutation 4 |
| コンテスト | |
| ユーザー |
anagohirame
|
| 提出日時 | 2018-06-09 00:15:42 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
MLE
不安定
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 96,100 KB |
| 実行使用メモリ | 239,900 KB |
| 最終ジャッジ日時 | 2026-08-23 12:12:25 |
| 合計ジャッジ時間 | 7,194 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 2 |
| other | MLE * 12 |
ソースコード
MOD = (10 ** 17) + 7 n, m = map(int, input().split()) x = list(map(int, input().split())) cost = [0 for _ in range(n)] cost[0] = 1 def areba(i, j): if i < j: return 0 else: return cost[i - j] for i in range(1, n): for j in x: cost[i] = (cost[i] + areba(i, j)) % MOD print(cost[-1])
anagohirame