結果
| 問題 |
No.1081 和の和
|
| コンテスト | |
| ユーザー |
mudbdb
|
| 提出日時 | 2020-06-19 21:58:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 63,732 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-03 14:27:26 |
| 合計ジャッジ時間 | 947 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 8 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int n;
int a[100];
cin >> n;
int i,j;
for (i=0; i<n; i++) cin >> a[i];
for (i=0; i<n-1; i++) for (j=0; j<n; j++) { a[i] += a[i+1]; a[i] %= 1000000007; }
cout << a[0];
return 0;
}
mudbdb