結果

問題 No.166 マス埋めゲーム
コンテスト
ユーザー KKT89
提出日時 2020-06-20 10:45:47
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 434 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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");
    }
}
0