結果
問題 | No.1081 和の和 |
ユーザー |
|
提出日時 | 2020-06-20 00:48:20 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 2,212 ms |
コンパイル使用メモリ | 145,076 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 11:11:53 |
合計ジャッジ時間 | 2,795 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
func main()var n: int :: cui@inputInt()var a: []int :: #[n]intfor i(0, n - 1)do a[i] :: cui@inputInt()end forfor i(n - 1, 1, -1)var nx: []int :: #[i]intfor j(0, i - 1)do nx[j] :: (a[j] + a[j + 1]) % (10 ^ 9 + 7)end fordo a :: nxend forvar ans: int :: a[0]do cui@print("\{ans}\n")end func