結果
問題 | No.2208 Linear Function |
ユーザー |
👑 |
提出日時 | 2023-02-10 23:57:00 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 17:42:53 |
合計ジャッジ時間 | 634 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
ソースコード
q = io.read("*n")for iq = 1, q dolocal l, r = io.read("*n", "*n")local a, b = io.read("*n", "*n")print(math.max(a * l + b, a * r + b))end