add 1025 1918 12101 1076 1247
complete 1076 1247 wander 1025 1918 12101
This commit is contained in:
13
zeta_python/completed/1076.py
Normal file
13
zeta_python/completed/1076.py
Normal file
@@ -0,0 +1,13 @@
|
||||
VALUE = {
|
||||
"black": 0,
|
||||
"brown": 1,
|
||||
"red": 2,
|
||||
"orange":3,
|
||||
"yellow":4,
|
||||
"green": 5,
|
||||
"blue": 6,
|
||||
"violet": 7,
|
||||
"grey": 8,
|
||||
"white": 9}
|
||||
|
||||
print((10*VALUE[input()] + VALUE[input()])*10**VALUE[input()])
|
||||
13
zeta_python/completed/1247.py
Normal file
13
zeta_python/completed/1247.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
for _ in range(3):
|
||||
N = int(sys.stdin.readline())
|
||||
t = 0
|
||||
for i in range(N):
|
||||
t += int(sys.stdin.readline())
|
||||
|
||||
if t > 0:
|
||||
print("+")
|
||||
elif t < 0:
|
||||
print("-")
|
||||
else:
|
||||
print("0")
|
||||
Reference in New Issue
Block a user