結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-19 19:31:00 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 3,124 ms |
| コンパイル使用メモリ | 184,704 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 16:38:50 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 20 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
module main;
import std;
void main()
{
// 入力
long H, W, N, K;
readln.chomp.formattedRead("%d %d %d %d", H, W, N, K);
// 答えの計算と出力
K %= N;
writeln(H * W % N == K ? "Yes" : "No");
}