結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
btk
|
| 提出日時 | 2016-07-02 00:23:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 1,620 ms |
| コンパイル使用メモリ | 165,580 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 01:41:04 |
| 合計ジャッジ時間 | 2,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 10 WA * 12 |
ソースコード
#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+N-1)%N+1==K)?"YES":"NO")<<endl;
else
cout<<((((R-1)*(C-1))%N+1==K)?"YES":"NO")<<endl;
return 0;
}
btk