回答編集履歴

3

ソース修正

2020/08/24 03:17

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
12
12
 
13
- print(score)
13
+ print(f'score = {score}')
14
14
 
15
15
 
16
16
 

2

ソース修正

2020/08/24 03:17

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
12
12
 
13
- print(score)
13
+ print(score)
14
14
 
15
15
 
16
16
 

1

ソース修正

2020/08/24 03:15

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  with open('test.txt', mode='r', encoding='utf-8') as f:
10
10
 
11
- l = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
11
+ score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
12
12
 
13
- print(l)
13
+ print(score)
14
14
 
15
15
 
16
16