結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
👑 |
提出日時 | 2020-09-19 19:58:32 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 244 ms |
コンパイル使用メモリ | 7,068 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 18:15:48 |
合計ジャッジ時間 | 810 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 3 |
ソースコード
local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] s = io.read() a, b = s:match("(%d+) (%d+)") b = C.atoll(b) while b % 2LL == 0 do b = b / 2LL end while b % 5LL == 0 do b = b / 5LL end print(b == 1LL and "No" or "Yes")