回答編集履歴
1
if 文の修正案を追加
test
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
9行目を、
|
2
|
+
```python3
|
2
3
|
t, e, m, s = [int(v) if i > 0 else v for i,v in enumerate(input().split())]
|
3
4
|
|
4
5
|
print(*(map(lambda x : x * 4, [t, e, m, s])))
|
@@ -8,3 +9,15 @@
|
|
8
9
|
出力
|
9
10
|
5555 24 28 32
|
10
11
|
'''
|
12
|
+
```
|
13
|
+
```python3
|
14
|
+
N = int(input())
|
15
|
+
l = [[int(v) if i > 0 else v for i,v in enumerate(input().split())] for h in range(N)]
|
16
|
+
acpt = 0
|
17
|
+
for t,e,m,s in l:
|
18
|
+
if e + m + s >= 210:
|
19
|
+
if (t == "bunkei" and e >= 80) or (t == "rikei" and m >= 80):
|
20
|
+
acpt += 1
|
21
|
+
print(acpt)
|
22
|
+
```
|
23
|
+
|