結果
| 問題 |
No.664 超能力者Aと株価予測
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-03-15 00:46:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 75,084 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-30 06:10:39 |
| 合計ジャッジ時間 | 1,398 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 13 |
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<string>
using namespace std;
int main(){
int N,M,K,ans=0;
cin >> N >> M >> K;
vector<int> a(N+1);
for(int i=0;i<=N;i++){
cin >> a[i];
if(i!=0&&a[i]>a[i-1]) K+=M*(a[i]-a[i-1]);
}
cout << K << endl;
}
focus