結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2018-09-20 08:09:35 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 748 ms |
コンパイル使用メモリ | 111,684 KB |
実行使用メモリ | 25,992 KB |
最終ジャッジ日時 | 2024-07-18 08:27:52 |
合計ジャッジ時間 | 2,067 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var h = long.Parse(line[0]); var w = long.Parse(line[1]); var n = long.Parse(line[2]); var k = long.Parse(line[3]); if ((h * w % n == k) | (h * w % n == 0)) Console.WriteLine("YES"); else Console.WriteLine("NO"); } }