結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
kmtrc130
|
| 提出日時 | 2017-05-17 10:06:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 430 bytes |
| コンパイル時間 | 702 ms |
| コンパイル使用メモリ | 111,988 KB |
| 実行使用メモリ | 26,064 KB |
| 最終ジャッジ日時 | 2024-09-17 12:27:05 |
| 合計ジャッジ時間 | 1,792 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 RE * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
string[] HWNK = Console.ReadLine().Split(' ');
long H = int.Parse(HWNK[0]);
long W = int.Parse(HWNK[1]);
long N = int.Parse(HWNK[2]);
long K = int.Parse(HWNK[3]);
long loser = H * W % N;
if (loser == 0) { loser = N; }
Console.WriteLine(loser == K ? "YES" : "NO");
}
}
kmtrc130