結果
| 問題 | No.842 初詣 | 
| コンテスト | |
| ユーザー |  a | 
| 提出日時 | 2019-06-29 22:01:44 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 329 bytes | 
| コンパイル時間 | 1,604 ms | 
| コンパイル使用メモリ | 166,816 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-02 05:41:13 | 
| 合計ジャッジ時間 | 3,843 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 WA * 5 RE * 10 | 
ソースコード
#include "bits/stdc++.h"
using namespace std;
void solve(void)
{
	int cs[7];
	for (int i = 0; i < 7; i++)
	{
		cin >> cs[i];
	}
	for (int i = 0; i < 6; i++)
	{
		int x = cs[6] / cs[i];
		cs[6] -= x * cs[i];
	}
	cout << (cs[6] ? "NO" : "YES") << endl;
}
int main()
{
	solve();
	//cout << "yui(*-v・)yui" << endl;
	return 0;
}
            
            
            
        