結果
問題 |
No.1048 Zero (Advanced)
|
ユーザー |
![]() |
提出日時 | 2020-06-26 08:04:12 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 708 bytes |
コンパイル時間 | 775 ms |
コンパイル使用メモリ | 104,576 KB |
実行使用メモリ | 19,072 KB |
最終ジャッジ日時 | 2024-07-03 22:06:27 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
コンパイルメッセージ
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; namespace Problem1048 { class Program { static void Main(string[] args) { var LRMK = GetLongArray(); long L = LRMK[0]; long R = LRMK[1]; long M = LRMK[2]; long K = LRMK[3]; long quoL = L * K % M == 0 ? L * K / M : L * K / M + 1; if (L * K <= quoL * M && quoL * M <= R * K) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } public static long[] GetLongArray() => Console.ReadLine().Split().Select(long.Parse).ToArray(); } }