add 1025 1918 12101 1076 1247

complete 1076 1247
wander 1025 1918 12101
This commit is contained in:
yenru0 committed 2020-08-05 21:18:51 +09:00
1 parent 5678668c28
commit f74f3c4ec7
5 files changed
+85

No files matched your search

+13
View 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
View 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")