結果
問題 | No.1957 Xor Min |
ユーザー |
👑 |
提出日時 | 2022-06-05 11:04:33 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 04:08:07 |
合計ジャッジ時間 | 919 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
local a, b = io.read("*n", "*n")if b < a then a, b = b, a endlocal c, d = 0, 0z = awhile 0 < z doc = c + 1z = math.floor(z / 2)endz = bwhile 0 < z dod = d + 1z = math.floor(z / 2)endif c < d thenprint(a)elselocal mul = 1for i = 1, c - 1 do mul = mul * 2 endprint(mul - 1)end