| 提出番号 | 405 |
|---|---|
| 提出者 | TakemotoN |
| 言語 | C++ |
| 提出日時 | 2017-07-15 16:27:32 |
| 問題名 | (12)玉ねぎの収穫 ~Easy~ |
| 結果 | WA |
| 点数 | 0% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 84ms | 8224KB |
| 2 | AC | 100% | 1ms | 8336KB |
| 3 | WA | 0% | 3ms | 7488KB |
| 4 | WA | 0% | 24ms | 8160KB |
| 5 | WA | 0% | 27ms | 8352KB |
| 6 | WA | 0% | 15ms | 7568KB |
#include "iostream"
using namespace std;
int main() {
int N, M;
cin >> N;
cin >> M;
int ans = 0;
int Si;
for (int i = 0; i < N; i++) {
int htk = Si + i;
cin >> htk;
ans = ans + htk;
}
int onion;
onion = ans * M;
cout << onion << endl;
}