結果
問題 |
No.2054 Different Sequence
|
ユーザー |
👑 |
提出日時 | 2022-08-23 22:44:42 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 128 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 05:23:22 |
合計ジャッジ時間 | 973 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
local n, m = io.read("*n", "*n") local lim = math.floor(n * (n + 1) / 2) if lim <= m then print("Yes") else print("No") end