結果
| 問題 | No.1081 和の和 |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-06-23 21:28:26 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 2,000 ms |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 478 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-25 03:12:15 |
| 合計ジャッジ時間 | 2,042 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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