[feature] better output format
Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
This commit is contained in:
parent
e1c7c59345
commit
ee500e6510
11
vcheck.py
11
vcheck.py
@ -69,6 +69,9 @@ folder = vconf.readline().strip()
|
|||||||
if (not os.path.exists(folder)):
|
if (not os.path.exists(folder)):
|
||||||
os.makedirs(folder)
|
os.makedirs(folder)
|
||||||
|
|
||||||
|
print("Start Checking solution for {}.".format(name))
|
||||||
|
print()
|
||||||
|
|
||||||
sub_tasks = int(sub_tasks)
|
sub_tasks = int(sub_tasks)
|
||||||
tot_tasks = 0
|
tot_tasks = 0
|
||||||
|
|
||||||
@ -118,7 +121,7 @@ for i in range(1, sub_tasks + 1):
|
|||||||
re += 1
|
re += 1
|
||||||
|
|
||||||
print(
|
print(
|
||||||
" [{}%] Case #{}.{}: {} ({}ms)".format(
|
" [{:>3}%] Case #{}.{}: {:^14} ({}ms)".format(
|
||||||
round((tot_id / tot_tasks) * 100),
|
round((tot_id / tot_tasks) * 100),
|
||||||
i,
|
i,
|
||||||
j,
|
j,
|
||||||
@ -148,6 +151,6 @@ print(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
print("--------------------------------")
|
print("--------------------------------")
|
||||||
print(" AC: {} [{}%]".format(ac, ac * 100 // tot_tasks))
|
print(" AC: {:>3} [{:>3}%]".format(ac, ac * 100 // tot_tasks))
|
||||||
print(" WA: {} [{}%]".format(wa, wa * 100 // tot_tasks))
|
print(" WA: {:>3} [{:>3}%]".format(wa, wa * 100 // tot_tasks))
|
||||||
print(" RE: {} [{}%]".format(re, re * 100 // tot_tasks))
|
print(" RE: {:>3} [{:>3}%]".format(re, re * 100 // tot_tasks))
|
||||||
|
5
vmake.py
5
vmake.py
@ -33,6 +33,9 @@ folder = vconf.readline().strip()
|
|||||||
if (not os.path.exists(folder)):
|
if (not os.path.exists(folder)):
|
||||||
os.makedirs(folder)
|
os.makedirs(folder)
|
||||||
|
|
||||||
|
print("Start Making data for {}.".format(name))
|
||||||
|
print()
|
||||||
|
|
||||||
sub_tasks = int(sub_tasks)
|
sub_tasks = int(sub_tasks)
|
||||||
tot_tasks = 0
|
tot_tasks = 0
|
||||||
|
|
||||||
@ -92,7 +95,7 @@ for i in range(1, sub_tasks + 1):
|
|||||||
max_case = (i, j)
|
max_case = (i, j)
|
||||||
|
|
||||||
print(
|
print(
|
||||||
" [{}%] Made case #{}.{}: ({}ms)".format(
|
" [{:>3}%] Made case #{}.{}: ({}ms)".format(
|
||||||
round((tot_id / tot_tasks) * 100),
|
round((tot_id / tot_tasks) * 100),
|
||||||
i,
|
i,
|
||||||
j,
|
j,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user