結果
問題 |
No.2054 Different Sequence
|
ユーザー |
![]() |
提出日時 | 2022-08-21 16:10:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 40,320 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 06:14:03 |
合計ジャッジ時間 | 1,046 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
/* -*- coding: utf-8 -*- * * 2054.cc: No.2054 Different Sequence - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int n, m; scanf("%d%d", &n, &m); if ((ll)n * (n + 1) / 2 <= m) puts("Yes"); else puts("No"); return 0; }