結果

問題 No.851 テストケース
ユーザー 👑 obakyan
提出日時 2019-07-27 09:59:49
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 3,153 ms
コード長 307 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 10:46:11
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

local n = io.read("*n", "*l")
local str = io.read()
local a = {}
for v in str:gmatch("%d+") do
  table.insert(a, tonumber(v))
end
if #a == 3 then
  print('"assert"')
else
  a[2] = io.read("*n")
  a[3] = io.read("*n")
  table.sort(a)
  if a[1] == a[2] then print(a[1] + a[2]) else print(a[1] + a[3]) end
end
0