結果
| 問題 | No.384 マス埋めゲーム2 |
| コンテスト | |
| ユーザー |
btk
|
| 提出日時 | 2016-07-08 22:11:15 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 403µs | |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 883 ms |
| コンパイル使用メモリ | 178,668 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-15 05:03:49 |
| 合計ジャッジ時間 | 2,407 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#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;
cout<<(((R+C+N-2)%N +1==K)?"YES":"NO")<<endl;
return 0;
}
btk