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