2024-08-07 15:40:31 +00:00
|
|
|
add_rules("mode.release","mode.debug")
|
2024-08-08 01:13:42 +00:00
|
|
|
if is_mode("debug")then
|
2024-08-08 04:15:58 +00:00
|
|
|
add_defines("OIPRINT")
|
2024-08-08 01:13:42 +00:00
|
|
|
end
|
2024-08-10 01:21:33 +00:00
|
|
|
set_warnings("all")
|
2024-08-14 01:09:21 +00:00
|
|
|
set_languages("c++17")
|
2024-08-08 01:13:42 +00:00
|
|
|
|
2024-08-07 15:40:31 +00:00
|
|
|
target("st_raw")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("day5/RMQ/st_raw.cpp")
|
2024-08-07 16:14:36 +00:00
|
|
|
set_rundir("./day5/RMQ")
|
|
|
|
|
|
|
|
target("st_done")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("./day5/RMQ/st_done.cpp")
|
|
|
|
|
|
|
|
target("test")
|
|
|
|
set_kind("binary")
|
2024-08-09 01:07:47 +00:00
|
|
|
add_files("./test.cpp")
|
|
|
|
add_tests("1",{files="./test.cpp",defines="OITEST",run_timeout=1000})
|
2024-08-08 01:13:42 +00:00
|
|
|
|
|
|
|
target("P3865")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("./day6/P3865/*.cpp")
|
2024-08-08 04:15:58 +00:00
|
|
|
|
|
|
|
target("binExp")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("./day6/binaryExponentiation/*.cpp")
|
2024-08-08 06:12:15 +00:00
|
|
|
add_tests("binExp",{files="./day6/binaryExponentiation/*.cpp",defines = "ISTEST"})
|
|
|
|
|
|
|
|
target("fperfect")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("./day5/perfect/fix.cpp")
|
2024-08-08 15:43:59 +00:00
|
|
|
set_rundir("./day5/perfect/")
|
2024-08-09 01:07:47 +00:00
|
|
|
for val=1,4 do
|
2024-08-09 09:12:44 +00:00
|
|
|
local s = tostring(val)
|
|
|
|
add_tests(s,{files="./day5/perfect/fix.cpp",defines="OITEST",runargs={"perfect"..s..".in","perfect"..s..".ans"},run_timeout=1000})
|
2024-08-08 15:43:59 +00:00
|
|
|
end
|
2024-08-08 06:12:15 +00:00
|
|
|
|
|
|
|
target("pre88")
|
|
|
|
set_kind("binary")
|
2024-08-09 02:03:38 +00:00
|
|
|
add_files("./day6/pre88/*.cpp")
|
|
|
|
|
|
|
|
target("inverse")
|
|
|
|
set_kind("binary")
|
|
|
|
add_files("./day7/inverse/*.cpp")
|
|
|
|
set_rundir("./day7/inverse")
|
|
|
|
for v=1,2 do
|
|
|
|
local strname = tostring(v)
|
|
|
|
add_tests(strname,{files="./day7/inverse/*.cpp",defines="OITEST",runargs=strname,run_timeout=1000})
|
2024-08-09 04:02:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
target("P5431")
|
|
|
|
set_rundir("./day7/P5431")
|
|
|
|
add_files("./day7/P5431/*.cpp")
|
|
|
|
for v=1,1 do
|
|
|
|
local s=tostring(v)
|
|
|
|
add_tests(s,{files="./day7/P5431/*.cpp",defines="OITEST",runargs={s..".in",s..".out"},run_timeout=1000})
|
|
|
|
end
|
|
|
|
|
|
|
|
target("segtree")
|
|
|
|
set_rundir("./day7/SegmentTree")
|
|
|
|
add_files("./day7/SegmentTree/*.cpp")
|
2024-08-09 07:36:41 +00:00
|
|
|
for v=1,2 do
|
2024-08-09 06:26:48 +00:00
|
|
|
local s=tostring(v)
|
2024-08-10 03:45:35 +00:00
|
|
|
add_tests(s,{files="./day7/SegmentTree/*.cpp",runargs={s..".in",s..".out"},defines="OITEST",run_timeout=1000})
|
2024-08-09 06:26:48 +00:00
|
|
|
end
|
2024-08-09 08:01:04 +00:00
|
|
|
|
|
|
|
target("P3372")
|
|
|
|
set_rundir("./day7/P3372")
|
|
|
|
add_files("./day7/P3372/*.cpp")
|
|
|
|
for v=1,1 do
|
|
|
|
local s=tostring(v)
|
2024-08-10 03:45:35 +00:00
|
|
|
add_tests(s,{files="./day7/P3372/*.cpp",runargs={s..".in",s..".ans"},defines="OITEST",run_timeout=1000})
|
2024-08-09 08:01:04 +00:00
|
|
|
end
|
2024-08-10 01:21:33 +00:00
|
|
|
|
|
|
|
target("T493931")
|
|
|
|
set_rundir("./day8/T493931")
|
|
|
|
add_files("./day8/T493931/*.cpp")
|
|
|
|
for v=1,2 do
|
|
|
|
local s = tostring(v)
|
2024-08-10 03:45:35 +00:00
|
|
|
add_tests(s,{files="./day8/T493931/*.cpp",runargs={s..".in",s..".ans"},defines="OITEST",run_timeout=1000})
|
|
|
|
end
|
|
|
|
|
|
|
|
target("U279656")
|
|
|
|
set_rundir("./day8/U279656")
|
|
|
|
add_files("./day8/U279656/*.cpp")
|
|
|
|
for v=1,3 do
|
|
|
|
local s=tostring(v)
|
|
|
|
add_tests(s,{files="./day8/U279656/*.cpp",runargs={"seg"..s..".in","seg"..s..".ans"},defines="OITEST",run_timeout=1000})
|
2024-08-11 03:45:06 +00:00
|
|
|
end
|
|
|
|
|
2024-08-12 02:07:56 +00:00
|
|
|
target("P2580")
|
|
|
|
set_rundir("./day9/P2580")
|
|
|
|
add_files("./day9/P2580/*.cpp")
|
|
|
|
for v=1,2 do
|
|
|
|
local s=tostring(v)
|
|
|
|
add_tests(s,{files="./day9/P2580/*.cpp",runargs={"P2580_"..s..".in","P2580_"..s..".out"},defines="OITEST",run_timeout=1000})
|
|
|
|
end
|
|
|
|
|
|
|
|
target("U88589")
|
|
|
|
set_rundir("./day10/U88589")
|
|
|
|
add_files("./day10/U88589/*.cpp")
|
|
|
|
-- add_defines("OITEST")
|
2024-08-14 03:47:41 +00:00
|
|
|
-- for v=1,2 do
|
|
|
|
-- local s=tostring(v)
|
|
|
|
-- add_tests(s,{files="./day10/U88589/*.cpp",runargs={s..".in",s..".ans"},defines="OITEST",run_timeout=1000})
|
|
|
|
-- end
|
2024-08-12 03:27:26 +00:00
|
|
|
|
|
|
|
target("U178578")
|
|
|
|
set_rundir("./day10/U178578")
|
|
|
|
add_files("./day10/U178578/*.cpp")
|
2024-08-14 03:47:41 +00:00
|
|
|
-- for v=1,3 do
|
|
|
|
-- local s=tostring(v)
|
|
|
|
-- add_tests(s,{files="./day10/U178578/*.cpp",runargs={"bubble"..s..".in","bubble"..s..".ans"},run_timeout=1000,defines="OITEST"})
|
|
|
|
-- end
|
2024-08-12 09:03:07 +00:00
|
|
|
|
|
|
|
target("P9127")
|
|
|
|
set_rundir("./day9/P9127")
|
2024-08-13 01:59:58 +00:00
|
|
|
add_files("./day9/P9127/*.cpp")
|
|
|
|
|
|
|
|
target("P3374")
|
2024-08-13 03:25:45 +00:00
|
|
|
set_rundir("./day11/P3374")
|
|
|
|
add_files("./day11/P3374/*.cpp")
|
|
|
|
|
|
|
|
target("P3608")
|
|
|
|
set_rundir("./day11/P3608")
|
2024-08-14 01:09:21 +00:00
|
|
|
add_files("./day11/P3608/*.cpp")
|
|
|
|
|
|
|
|
target("U466180")
|
|
|
|
set_rundir("day12/U466180")
|
|
|
|
add_files("day12/U466180/*.cpp")
|
|
|
|
for v=1,5 do
|
|
|
|
local s=tostring(v)
|
|
|
|
add_tests(s,{files="day12/U466180/*.cpp",defines="OITEST",run_timeout=1000,runargs={"ex_divisor"..s..".in","ex_divisor"..s..".ans"}})
|
2024-08-14 03:47:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
target("U466168")
|
|
|
|
set_rundir("day12/U466168")
|
|
|
|
add_files("day12/U466168/*.cpp")
|
|
|
|
|
|
|
|
target("U466178")
|
|
|
|
set_rundir("day12/U466178")
|
|
|
|
add_files("day12/U466178/U466178.cpp")
|
|
|
|
for v=1,8 do
|
|
|
|
local s = tostring(v)
|
|
|
|
add_tests(s,{files="day12/U466178/U466178.cpp",defines="OITEST",run_timeout=1000,runargs={"ex_circle"..s..".in","ex_circle"..s..".ans"}})
|
2024-08-16 02:51:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
target("P2871")
|
|
|
|
set_rundir("day13/P2871")
|
|
|
|
add_files("day13/P2871/*.cpp")
|
|
|
|
|
|
|
|
target("P1616")
|
|
|
|
set_rundir("day13/P1616")
|
|
|
|
add_files("day13/P1616/*.cpp")
|