結果
| 問題 | 
                            No.2054 Different Sequence
                             | 
                    
| コンテスト | |
| ユーザー | 
                             rieaaddlreiuu
                         | 
                    
| 提出日時 | 2022-10-22 09:29:31 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 298 bytes | 
| コンパイル時間 | 1,701 ms | 
| コンパイル使用メモリ | 165,520 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-01 13:17:54 | 
| 合計ジャッジ時間 | 2,535 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 20 | 
ソースコード
#include <bits/stdc++.h>
#include <vector>
#include <tuple>
#include <regex>
#include <string>
#include <stack>
#include <algorithm>
using namespace std;
int main(){
    long N,M;
    scanf("%ld %ld",&N,&M);
    if(N*(N+1)/2 <= M){
        printf("Yes");
    } else {
        printf("No");
    }
}
            
            
            
        
            
rieaaddlreiuu