結果
問題 |
No.1081 和の和
|
ユーザー |
|
提出日時 | 2021-09-27 22:18:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-06 18:42:59 |
合計ジャッジ時間 | 1,020 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 8 |
ソースコード
n = int(input()) l = list(map(int,input().split())) while len(l) > 1: for i in range(len(l)-1,0,-1): l[i]+=l[i-1] l.pop(0) print(l[0] // (10 ** 9 + 7))