Last time I lost in mahjong today, so I'm withered. Fill all A in ABC.
#21 [problem] (https://atcoder.jp/contests/arc015/tasks/arc015_2) 2WA
** Thoughts ** I divided the cases by stopping thinking. If you do not implement it after confirming less than and below and above, it will hurt ().
n = int(input())
temp = [list(map(float,input().split())) for _ in range(n)]
ans = [0] * 6
for i in temp:
if i[0] >= 35: #Extremely hot day
ans[0] += 1
elif 30 <= i[0] < 35: #Midsummer day
ans[1] += 1
elif 25 <= i[0] < 30: #summer day
ans[2] += 1
if i[1] >= 25: #Tropical night
ans[3] += 1
elif i[1] < 0 and i[0] >= 0: #Winter day
ans[4] += 1
elif i[0] < 0: #Midwinter day
ans[5] += 1
l = list(map(str,ans))
ans = ' '.join(l)
print(ans)
The fun mathematical wings are over. I will do my school homework. see you
Recommended Posts