add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
19
test_anxiety.py
Normal file
19
test_anxiety.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
average = int(input(""))
|
||||
|
||||
assignments = int(input(""))
|
||||
|
||||
"""
|
||||
(average*2+x)/3=80
|
||||
average*2+x=240
|
||||
x=240-average*2
|
||||
|
||||
"""
|
||||
|
||||
required = 80*(assignments+1) - average*assignments
|
||||
|
||||
if required > 100:
|
||||
print("-1")
|
||||
elif required < 0:
|
||||
print("0")
|
||||
else:
|
||||
print(required)
|
Loading…
Add table
Add a link
Reference in a new issue