| 提出番号 | 163 |
|---|---|
| 提出者 | tone_back |
| 言語 | C++ |
| 提出日時 | 2017-07-03 19:32:09 |
| 問題名 | (12)玉ねぎの収穫 ~Easy~ |
| 結果 | AC |
| 点数 | 100% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 3ms | 7472KB |
| 2 | AC | 100% | 2ms | 7568KB |
| 3 | AC | 100% | 138ms | 7776KB |
| 4 | AC | 100% | 23ms | 8048KB |
| 5 | AC | 100% | 44ms | 8016KB |
| 6 | AC | 100% | 21ms | 8096KB |
#define _USE_MATH_DEFINES
typedef long long ll;
#include <iostream>
#include <math.h>
#include <climits>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <string>
using namespace std;
/* sample input
*/
int main()
{
ll n, m;
cin >> n >> m;
ll sum = 0;
for (int i = 0; i < n; i++){
ll temp;
cin >> temp;
sum += temp;
}
cout << sum *m;
//cout << sum *m << endl;
return 0;
}