結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2018-05-27 22:36:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 283 bytes |
コンパイル時間 | 1,572 ms |
コンパイル使用メモリ | 166,012 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 07:25:30 |
合計ジャッジ時間 | 2,498 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~
ソースコード
#include<bits/stdc++.h>typedef long long ll;using namespace std;int INF = 1LL << 30;int MOD = 1e9+7;main(){ll H,W,N,K;cin >> H >> W >> N >> K;if(N == 1 || (H + W - 1) % N == K % N){cout << "YES" << endl;} else{cout << "NO" << endl;}}