結果

問題 No.2054 Different Sequence
ユーザー viral8viral8
提出日時 2022-10-01 11:02:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 3,659 ms
コンパイル使用メモリ 71,308 KB
実行使用メモリ 56,264 KB
最終ジャッジ日時 2023-08-25 03:31:59
合計ジャッジ時間 7,143 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,188 KB
testcase_01 AC 123 ms
55,748 KB
testcase_02 AC 124 ms
55,672 KB
testcase_03 AC 121 ms
55,800 KB
testcase_04 AC 124 ms
56,120 KB
testcase_05 AC 124 ms
56,140 KB
testcase_06 AC 123 ms
55,988 KB
testcase_07 AC 129 ms
55,548 KB
testcase_08 AC 123 ms
55,732 KB
testcase_09 AC 123 ms
55,952 KB
testcase_10 AC 121 ms
56,264 KB
testcase_11 AC 122 ms
56,180 KB
testcase_12 AC 123 ms
56,096 KB
testcase_13 AC 122 ms
55,976 KB
testcase_14 AC 123 ms
56,172 KB
testcase_15 AC 122 ms
55,976 KB
testcase_16 AC 130 ms
55,796 KB
testcase_17 AC 122 ms
56,108 KB
testcase_18 AC 125 ms
55,768 KB
testcase_19 AC 126 ms
56,072 KB
testcase_20 AC 123 ms
55,812 KB
testcase_21 AC 123 ms
55,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int M = sc.nextInt();
        System.out.println(N*(N+1)/2>M?"No":"Yes");
    }
}
0