結果

問題 No.1048 Zero (Advanced)
ユーザー Yusei KatoYusei Kato
提出日時 2020-06-26 08:04:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 708 bytes
コンパイル時間 838 ms
コンパイル使用メモリ 63,904 KB
実行使用メモリ 23,972 KB
最終ジャッジ日時 2023-09-16 23:27:49
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,912 KB
testcase_01 AC 56 ms
21,836 KB
testcase_02 AC 56 ms
23,880 KB
testcase_03 AC 58 ms
21,776 KB
testcase_04 AC 58 ms
23,968 KB
testcase_05 AC 56 ms
23,876 KB
testcase_06 AC 57 ms
23,832 KB
testcase_07 AC 57 ms
21,820 KB
testcase_08 AC 55 ms
21,712 KB
testcase_09 AC 56 ms
21,976 KB
testcase_10 AC 56 ms
23,876 KB
testcase_11 AC 55 ms
21,840 KB
testcase_12 AC 54 ms
21,972 KB
testcase_13 AC 55 ms
21,892 KB
testcase_14 AC 56 ms
21,876 KB
testcase_15 AC 57 ms
23,972 KB
testcase_16 AC 57 ms
23,924 KB
testcase_17 AC 56 ms
21,968 KB
testcase_18 AC 56 ms
23,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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();

    }
}
0