結果

問題 No.683 Two Operations No.3
ユーザー 👑 obakyan
提出日時 2019-03-31 22:30:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 384 bytes
コンパイル時間 698 ms
コンパイル使用メモリ 71,992 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 13:17:25
合計ジャッジ時間 3,872 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>

int main(void)
{
	long h, w, n, k;
	std::cin >> h >> w >> n >> k;
    if((h + w - 1) % n == k % n){
        std::cout << "YES" << std::endl;
    } else {
        std::cout << "NO" << std::endl;
    }
	return 0;
}

0