結果

問題 No.1048 Zero (Advanced)
ユーザー keymoonkeymoon
提出日時 2020-05-08 21:26:58
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 656 bytes
コンパイル時間 2,011 ms
コンパイル使用メモリ 104,956 KB
実行使用メモリ 23,940 KB
最終ジャッジ日時 2023-09-17 01:32:22
合計ジャッジ時間 3,606 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
19,740 KB
testcase_01 AC 51 ms
21,836 KB
testcase_02 AC 52 ms
21,768 KB
testcase_03 AC 50 ms
23,864 KB
testcase_04 AC 55 ms
23,940 KB
testcase_05 AC 52 ms
21,844 KB
testcase_06 AC 52 ms
21,716 KB
testcase_07 AC 52 ms
23,836 KB
testcase_08 AC 55 ms
21,900 KB
testcase_09 AC 52 ms
21,924 KB
testcase_10 AC 54 ms
23,880 KB
testcase_11 AC 53 ms
23,932 KB
testcase_12 AC 53 ms
21,956 KB
testcase_13 AC 54 ms
21,960 KB
testcase_14 AC 54 ms
21,904 KB
testcase_15 AC 56 ms
21,904 KB
testcase_16 AC 56 ms
21,760 KB
testcase_17 AC 57 ms
22,012 KB
testcase_18 AC 55 ms
21,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P
{
    public static void Main()
    {
        var lrmk = Console.ReadLine().Split().Select(long.Parse).ToArray();
        var l = lrmk[0];
        var r = lrmk[1];
        var m = lrmk[2];
        var k = lrmk[3];
        var remain = m - (l * k) % m;
        if (remain == m) remain = 0;

        Console.WriteLine(remain <= (r - l) * k ? "Yes" : "No");
    }
}
0