結果

問題 No.909 たぴの配置
ユーザー 👑 obakyanobakyan
提出日時 2019-11-06 21:38:10
言語 Lua
(LuaJit 2.1.1696795921)
結果
AC  
実行時間 193 ms / 3,000 ms
コード長 285 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 5,156 KB
実行使用メモリ 6,516 KB
最終ジャッジ日時 2023-10-13 02:44:26
合計ジャッジ時間 4,787 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 179 ms
6,356 KB
testcase_06 AC 185 ms
6,444 KB
testcase_07 AC 172 ms
6,304 KB
testcase_08 AC 176 ms
6,516 KB
testcase_09 AC 193 ms
6,448 KB
testcase_10 AC 181 ms
6,460 KB
testcase_11 AC 183 ms
6,240 KB
testcase_12 AC 159 ms
6,392 KB
testcase_13 AC 162 ms
6,360 KB
testcase_14 AC 188 ms
6,412 KB
testcase_15 AC 187 ms
6,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

local n = io.read("*n")
local x, y = {}, {}
for i = 1, n do x[i] = io.read("*n") end
for i = 1, n do y[i] = io.read("*n") end
local min = x[1] + y[1]
for i = 2, n do
  min = math.min(min, x[i] + y[i])
end
print(min)
print(0)
for i = 1, n do
  print(math.min(x[i], min))
end
print(min)
0