結果
問題 | No.208 王将 |
ユーザー |
👑 |
提出日時 | 2019-04-23 09:34:53 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 05:33:04 |
合計ジャッジ時間 | 829 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
local x, y, x1, y1 = io.read("*n", "*n", "*n", "*n")local ma = math.absif((ma(x) == ma(y)) and x * y1 == y * x1 and 0 < x * x1 and ma(x1) < ma(x)) thenprint(ma(x) + 1)elseprint(math.max(ma(x), ma(y)))end