回答編集履歴

2

fix

2017/06/28 07:03

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -18,6 +18,6 @@
18
18
 
19
19
 
20
20
 
21
- # e = [['1', '2', '3', '4'], ['5', '6', '7', '8'], ['9', '9', '9', '9']]
21
+ # e = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 9, 9, 9]]
22
22
 
23
23
  ```

1

update

2017/06/28 07:03

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  e = []
8
8
 
9
- for line in sys.stdin:
9
+ for line in sys.stdin: # 1行づつ読み取り
10
10
 
11
11
  l = []
12
12
 
13
- for n in line.rstrip():
13
+ for n in line.rstrip(): # 1文字づつ処理
14
14
 
15
- l.append(n)
15
+ l.append(int(n)) # 文字→数値に変換
16
16
 
17
17
  e.append(l)
18
18