[feature] delete tmp files
Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
This commit is contained in:
parent
1acbe1787c
commit
a7c7a9949e
@ -111,17 +111,20 @@ for i in range(1, sub_tasks + 1):
|
||||
re += 1
|
||||
|
||||
print(
|
||||
" Case #{}.{}: {} ({}ms) [{}%]".format(
|
||||
" [{}%] Case #{}.{}: {} ({}ms)".format(
|
||||
round((tot_id / tot_tasks) * 100),
|
||||
i,
|
||||
j,
|
||||
res_str,
|
||||
round(elapsed_time * 1000, 2),
|
||||
round((tot_id / tot_tasks) * 100),
|
||||
)
|
||||
)
|
||||
|
||||
tot_end_time = time.time()
|
||||
|
||||
if os.path.exists(".output.tmp"):
|
||||
os.remove(".output.tmp")
|
||||
|
||||
print("\nSummary:", end="")
|
||||
if wa != 0:
|
||||
print(" WA", end="")
|
||||
|
13
vmake.py
13
vmake.py
@ -88,16 +88,19 @@ for i in range(1, sub_tasks + 1):
|
||||
max_case = (i, j)
|
||||
|
||||
print(
|
||||
" Made case #{}.{}: ({}ms) [{}%]".format(
|
||||
" [{}%] Made case #{}.{}: ({}ms)".format(
|
||||
round((tot_id / tot_tasks) * 100),
|
||||
i,
|
||||
j,
|
||||
round(std_time * 1000, 2),
|
||||
round((tot_id / tot_tasks) * 100),
|
||||
)
|
||||
)
|
||||
|
||||
tot_end_time = time.time()
|
||||
|
||||
if os.path.exists(".input.tmp"):
|
||||
os.remove(".input.tmp")
|
||||
|
||||
print("\nSummary:")
|
||||
print(" Total time: {}ms".format(round((tot_end_time - tot_start_time) * 1000, 2)))
|
||||
print(
|
||||
@ -107,4 +110,8 @@ print(
|
||||
)
|
||||
|
||||
if err_cnt != 0:
|
||||
print("****[ERR] {} times. [{}%]".format(err_cnt, (err_cnt * 100 // tot_tasks)))
|
||||
print(
|
||||
"****[ERR] {} errors occurred. [{}%]".format(
|
||||
err_cnt, (err_cnt * 100 // tot_tasks)
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user