結果
| 問題 |
No.166 マス埋めゲーム
|
| ユーザー |
startcpp
|
| 提出日時 | 2015-03-27 00:29:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 53,492 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 01:16:26 |
| 合計ジャッジ時間 | 1,383 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 11 |
ソースコード
#include<iostream>
using namespace std;
long long h, w, n, k;
int main() {
cin >> h >> w >> n >> k;
int s = h * w + 1;
s %= n;
if ( s + 1 == k )
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
startcpp