結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2016-02-22 19:55:28 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 88,452 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-05 06:41:41 |
| 合計ジャッジ時間 | 1,238 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 10 |
ソースコード
import std.stdio,
std.conv,
std.string,
std.range,
std.math,
std.algorithm;
void main()
{
auto input = readln.split.to!(long[]);
auto H = input[0], W = input[1], N = input[2], K = input[3];
(H * W % (N + 1) == K ? "YES" : "NO").writeln;
}
nak2yoshi