結果
問題 |
No.842 初詣
|
ユーザー |
|
提出日時 | 2019-07-09 05:51:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 1,666 ms |
コンパイル使用メモリ | 165,932 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 00:21:45 |
合計ジャッジ時間 | 2,940 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; if(500*a+100*b+50*c+10*d+5*e+f == g) { cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }