結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2016-08-30 19:08:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 976 ms |
コンパイル使用メモリ | 108,860 KB |
実行使用メモリ | 25,436 KB |
最終ジャッジ日時 | 2024-11-14 07:51:10 |
合計ジャッジ時間 | 2,112 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class S27_massgame{ public static int Main(string[] args){ int w,h; long n,k, end; w = int.Parse(Console.ReadLine()); h = int.Parse(Console.ReadLine()); n = long.Parse(Console.ReadLine()); k = long.Parse(Console.ReadLine()); end = w * h % n; if(end == 0) end = n; if(k == end){ Console.WriteLine("YES"); }else{ Console.WriteLine("NO"); } return 0; } }