結果
| 問題 |
No.2054 Different Sequence
|
| コンテスト | |
| ユーザー |
CAT_CAT
|
| 提出日時 | 2022-08-21 13:17:10 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 4,281 ms |
| コンパイル使用メモリ | 251,444 KB |
| 最終ジャッジ日時 | 2025-01-31 02:19:06 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#include<atcoder/all>
#define int long long
#define double long double
using namespace std;
int size(int number){
string numstr=to_string(number);
return numstr.size();
}
signed main(void){
int N,M;
cin>>N>>M;
if(N==1){
cout<<"Yes"<<endl;
return 0;
}
if((M-(N-1)*N/2)>N-1){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
}
CAT_CAT