結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
re1ns
|
| 提出日時 | 2015-11-14 17:30:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 55,264 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 16:44:04 |
| 合計ジャッジ時間 | 1,352 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
long long int h,w,n,k,s;
cin >> h >> w >> n >> k;
s = h*w;
s--;
if(s%n+1==k)cout << "YES" << endl;
else cout << "NO" << endl;
}
re1ns