結果

提出番号 402
提出者 YagiY
言語 C++
提出日時 2017-07-15 16:24:47
問題名 (12)玉ねぎの収穫 ~Easy~
結果 WA
点数 0%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 1ms 7760KB
2 AC 100% 1ms 7872KB
3 AC 100% 1ms 8336KB
4 WA 0% 47ms 8000KB
5 AC 100% 24ms 7712KB
6 WA 0% 12ms 8032KB

ソースコード

#include "iostream"
#include "string"
using namespace std;

int main() {
	int N,M;
	
	cin >> N >> M;
		
	long long ans = 0;
	int S;
	for (int i = 0; i < N; i++) {
		cin >> S;
		ans = ans + S * M;
	}
	cout << ans << endl;
	return 0;
}