結果
問題 |
No.1081 和の和
|
ユーザー |
![]() |
提出日時 | 2020-06-19 21:25:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-03 13:44:52 |
合計ジャッジ時間 | 913 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 8 |
ソースコード
N = int(input()) A = list(map(int, input().split())) result = A[0] + A[N - 1] for i in range(1, N - 1): result += A[i] * (N - 1) result %= 1000000007 print(result)