Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
from utils.check_case import check_case
|
||||
from utils.format_line import format_line
|
||||
|
||||
CASES = [
|
||||
(29, 2, 60, 82, 23),
|
||||
(53, 2, 20, 77, 42),
|
||||
(73, 5, 37, 47, 31),
|
||||
(31, 3, 31, 51, 15),
|
||||
(41, 6, 31, 98, 8),
|
||||
(19, 2, 20, 73, 4),
|
||||
(71, 7, 30, 89, 45),
|
||||
(109, 6, 7, 14, 84),
|
||||
(131, 2, 88, 15, 52),
|
||||
(97, 5, 58, 68, 6),
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
all_ok = True
|
||||
for i, case in enumerate(CASES, start=1):
|
||||
ok, (A, B, K_a, K_b) = check_case(*case)
|
||||
print(format_line(i, A, B, K_a, K_b, ok))
|
||||
if not ok:
|
||||
all_ok = False
|
||||
if not all_ok:
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user