結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-18 22:41:41 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 62,208 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-26 00:14:30 |
| 合計ジャッジ時間 | 990 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 6 |
ソースコード
#include <cstdio>
#include <cmath>
#include <vector>
using namespace std;
int main(){
using std::vector;
float H, W, N, K;
float size;
fscanf(stdin, "%f %f %f %f", &H, &W, &N, &K);
size = (H * W) - 1;
size = fmod(size, N);
if ((int)size == (int)(K-1)) {
printf("YES\n");
}
else {
printf("NO\n");
}
return 0;
}