Merge Week 1 #1
13
1/1.21 Divide By X/divide_by/main.py
Normal file
13
1/1.21 Divide By X/divide_by/main.py
Normal file
@@ -0,0 +1,13 @@
|
||||
if __name__ == '__main__':
|
||||
user_num = int(input())
|
||||
x = int(input())
|
||||
|
||||
result = []
|
||||
|
||||
for i in range(3):
|
||||
if i == 0:
|
||||
result.append(int(user_num / x))
|
||||
else:
|
||||
result.append(int(result[i - 1] / x))
|
||||
|
||||
print(*result)
|
||||
Reference in New Issue
Block a user