結果
| 問題 |
No.1081 和の和
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-06-23 21:28:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-03 19:29:48 |
| 合計ジャッジ時間 | 1,028 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
m = 1000000007
t = A[:]
n = []
while len(t) != 1:
for i in range(len(t) - 1):
n.append((t[i] + t[i + 1]) % m)
t = n
n = []
print(t[0])
c-yan