結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
ponponpop
|
| 提出日時 | 2018-09-17 19:24:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 1,000 ms |
| コード長 | 663 bytes |
| コンパイル時間 | 648 ms |
| コンパイル使用メモリ | 100,332 KB |
| 最終ジャッジ日時 | 2025-01-06 13:36:26 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
int main() {
ll h,w,n,k;
cin>>h>>w>>n>>k;
if((h*w)%n==k%n)
cout<<"YES"<<"\n";
else
cout<<"NO"<<"\n";
return 0;
}
ponponpop