結果
問題 | No.1081 和の和 |
ユーザー |
👑 ![]() |
提出日時 | 2021-01-22 19:38:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 2,010 ms |
コンパイル使用メモリ | 190,532 KB |
最終ジャッジ日時 | 2025-01-18 03:29:12 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include<bits/stdc++.h>using namespace std;using LL = long long;using ULL = unsigned long long;#define rep(i,n) for(int i=0; i<(n); i++)int N;int A[100];int main() {cin>>N; rep(i,N) cin>>A[i];rep(i,N-1) rep(j,N-1) A[j]=(A[j]+A[j+1])%1000000007;cout<<A[0]<<endl;return 0;}