結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-07-01 22:41:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 66,504 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 00:47:50 |
| 合計ジャッジ時間 | 1,331 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 2 |
ソースコード
#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll H, W, N, K;
cin >> H >> W >> N >> K;
H += W - 1;
if(H % N == K) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
femto