ysu-acm solves and icpc A & B

This commit is contained in:
Xevion
2019-08-24 18:03:31 -05:00
parent 63afb03484
commit 3297bcd237
16 changed files with 156 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
5
2
3
1
2

View File

@@ -0,0 +1,9 @@
import sys, os
# Read the data
path = os.path.join(sys.path[0], 'input')
data = open(path, 'r').read().split('\n')
data = list(map(int, data))
assert all(map(lambda x : x >= 1, data))
print('\n\n'.join('\n'.join('*' * x for x in range(n, 0, -1))for n in data))