結果
問題 | No.268 ラッピング(Easy) |
ユーザー |
👑 |
提出日時 | 2019-04-02 23:58:48 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 484 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 14:48:47 |
合計ジャッジ時間 | 1,185 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
a,b,c,x,y,z = io.read("*n", "*n", "*n", "*n", "*n", "*n")max = a*x + b*y + c*zmax = math.max(max, b*x + c*y + a*z)max = math.max(max, c*x + a*y + b*z)max = math.max(max, b*x + a*y + c*z)max = math.max(max, c*x + b*y + a*z)max = math.max(max, a*x + c*y + b*z)print((a+b+c) * (x+y+z) * 2 - 2 * max)