結果

問題 No.384 マス埋めゲーム2
ユーザー btk
提出日時 2016-07-08 22:08:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 1,501 ms
コンパイル使用メモリ 166,508 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 23:30:40
合計ジャッジ時間 2,338 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

struct INIT{
    INIT(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    }
}init;

int main(){
    long long R,C,N,K;
    cin>>R>>C>>N>>K;
    if(R==1||C==1)
    cout<<(((R+C-1)%N+1==K)?"YES":"NO")<<endl;
    return 0;
}
0