結果

問題 No.2054 Different Sequence
ユーザー forest3
提出日時 2025-03-13 17:08:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 1,691 ms
コンパイル使用メモリ 162,020 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-13 17:08:38
合計ジャッジ時間 3,249 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
#define rep(i, n) for(ll i = 0; i < n; i++)

int main() {
	ll N, M;
	cin >> N >> M;
	string ans = "No";
	if(N * (N + 1) / 2 <= M) ans = "Yes";
	cout << ans << endl;
} 
0