| 提出番号 | 399 |
|---|---|
| 提出者 | YagiY |
| 言語 | C++ |
| 提出日時 | 2017-07-15 16:21:26 |
| 問題名 | (12)玉ねぎの収穫 ~Easy~ |
| 結果 | WA |
| 点数 | 0% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 2ms | 8176KB |
| 2 | AC | 100% | 2ms | 7920KB |
| 3 | WA | 0% | 1ms | 8096KB |
| 4 | WA | 0% | 25ms | 7568KB |
| 5 | WA | 0% | 24ms | 8016KB |
| 6 | WA | 0% | 14ms | 8160KB |
#include "iostream"
#include "string"
using namespace std;
int main() {
int N,M = 0;
cin >> N >> M;
int S;
int ans = 0;
for (int i = 0; i < N; i++) {
cin >> S;
ans = ans + S * M;
}
cout << ans << endl;
return 0;
}