結果
問題 | No.1585 Cubic Number |
ユーザー |
👑 |
提出日時 | 2021-07-19 21:23:47 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 29 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-17 13:35:53 |
合計ジャッジ時間 | 1,087 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local n = lltonumber(io.read()) for i = 1, 1000000 do i = 1LL * i if i * i * i == n then print("Yes") os.exit() end end print("No")