問題一覧 > 通常問題

No.2054 Different Sequence

レベル : / AI推定難易度 : 180 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 125
作問者 : PCTprobability / テスター : butsurizuki
お気に入りにしたユーザー ProblemId : 8378 / 自分の提出
問題文最終更新日: 2022-08-21 04:20:34
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
NPCA 合宿コンテスト (順位表) の他の問題:

Problem Statement

Determine whether there exists a sequence of positive integers of length $N$ with sum $M$ whose elements are all distinct.

Constraints

  • $1 \le N,M \le 10^9$
  • All inputs are integers.

Input

$N$ $M$

Output

If a sequence of positive integers satisfying the conditions exists, print Yes; otherwise, print No.

Sample

Sample 1
Input
3 8
Output
Yes

$(4,1,3)$ is one example of a sequence of positive integers satisfying the conditions.

Sample 2
Input
2 2
Output
No

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。