結果

問題 No.2054 Different Sequence
ユーザー デカブツデカブツ
提出日時 2022-08-21 13:30:02
言語 C#
(.NET 7.0.402)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 485 bytes
コンパイル時間 6,902 ms
コンパイル使用メモリ 147,988 KB
実行使用メモリ 163,868 KB
最終ジャッジ日時 2023-07-31 12:38:00
合計ジャッジ時間 8,886 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
28,028 KB
testcase_01 AC 45 ms
29,684 KB
testcase_02 AC 46 ms
27,724 KB
testcase_03 AC 45 ms
27,872 KB
testcase_04 AC 44 ms
29,796 KB
testcase_05 AC 45 ms
29,940 KB
testcase_06 AC 45 ms
27,668 KB
testcase_07 AC 45 ms
28,048 KB
testcase_08 AC 44 ms
27,984 KB
testcase_09 AC 45 ms
28,024 KB
testcase_10 AC 45 ms
27,712 KB
testcase_11 AC 45 ms
27,896 KB
testcase_12 AC 44 ms
27,672 KB
testcase_13 AC 45 ms
27,752 KB
testcase_14 AC 46 ms
29,900 KB
testcase_15 AC 46 ms
29,708 KB
testcase_16 AC 45 ms
29,800 KB
testcase_17 AC 46 ms
30,020 KB
testcase_18 AC 44 ms
27,720 KB
testcase_19 AC 44 ms
27,972 KB
testcase_20 AC 45 ms
27,704 KB
testcase_21 AC 46 ms
163,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 120 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;

namespace test
{
    static class Program
    {
        static void Main()
        {
            string[] str = Console.ReadLine().Split(' ');
            long n = long.Parse(str[0]);
            long m = long.Parse(str[1]);
            if (m >= n * (n + 1) / 2)
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }
    }
}
0