結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2016-02-22 20:36:52 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 709 ms |
コンパイル使用メモリ | 102,136 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 02:59:40 |
合計ジャッジ時間 | 1,493 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
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 - 1) % N == K - 1 ? "YES" : "NO").writeln;}