結果

問題 No.384 マス埋めゲーム2
ユーザー kpinkcat
提出日時 2023-12-08 23:02:22
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 1,004 ms
コンパイル使用メモリ 103,344 KB
最終ジャッジ日時 2025-02-18 09:39:52
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using ll = long long;
using namespace std;

int main(){
    ll h, w, n, k, t;
    cin >> h >> w >> n >> k;
    t = (h+w-1)%n;
    if (!t) t = n;
    cout << ((t == k) ? "YES" : "NO") << endl;
}
0