Skip to content

Commit 5c21d03

Browse files
committed
confirm before submit
1 parent 4cdc9bf commit 5c21d03

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/submit.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ class AccountInformation:
1212

1313

1414
def main(contestid, pid, lang, fileName):
15+
16+
print("Are you sure to submit? (y/n)")
17+
select = input()
18+
if select == 'y':
19+
pass
20+
elif select == 'n':
21+
print("Canceled")
22+
return
23+
else:
24+
print("Please input \"y\" or \"n\"")
25+
return
26+
1527
source = ""
1628
f = open(fileName, 'r')
1729
for line in f:

0 commit comments

Comments
 (0)