結果
| 問題 | No.842 初詣 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-09 05:53:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 1,534 ms |
| コンパイル使用メモリ | 167,140 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-11 00:23:49 |
| 合計ジャッジ時間 | 2,278 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d, e, f, g;
cin >> a >> b >> c >> d >> e >> f >> g;
int sum = 0;
sum += 500*a;
sum += 100*b;
sum += 50*c;
sum += 10*d;
sum += 5*e;
sum += f;
if(sum == g) {
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
}