結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-20 10:45:47 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| 記録 | |
| コンパイル時間 | 678 ms |
| コンパイル使用メモリ | 110,708 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-06-10 21:45:30 |
| 合計ジャッジ時間 | 1,813 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <math.h>
#include <deque>
#include <queue>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll h,w,n,k; cin >> h >> w >> n >> k;
h=h*w%n;
if(h+1==k){
printf("NO\n");
}
else{
printf("YES\n");
}
}