回答編集履歴

4

修正

2020/05/11 23:57

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -14,6 +14,6 @@
14
14
 
15
15
  --> 4 3 5 2 5 1 3 5 # と入力
16
16
 
17
- 4 3 2 1 # 出力
17
+ 4 3 5 2 1 # 出力
18
18
 
19
19
  ```ちなみにlistというのはPythonの標準ライブラリの名前なのでlistという変数や関数は作らない方がいいですよ

3

修正

2020/05/11 23:56

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  lst = sorted(set(lst), key=lst.index)
8
8
 
9
- print(lst)
9
+ print(' '.join(map(str, lst)))
10
10
 
11
11
 
12
12
 
@@ -14,6 +14,6 @@
14
14
 
15
15
  --> 4 3 5 2 5 1 3 5 # と入力
16
16
 
17
- [4, 3, 2, 1]
17
+ 4 3 2 1 # 出力
18
18
 
19
19
  ```ちなみにlistというのはPythonの標準ライブラリの名前なのでlistという変数や関数は作らない方がいいですよ

2

修正

2020/05/11 21:31

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -2,10 +2,18 @@
2
2
 
3
3
  ```Python
4
4
 
5
- lst = [int(s) for s in input("-->").split()]
5
+ lst = [int(s) for s in input("--> ").split()]
6
6
 
7
7
  lst = sorted(set(lst), key=lst.index)
8
8
 
9
9
  print(lst)
10
10
 
11
+
12
+
13
+
14
+
15
+ --> 4 3 5 2 5 1 3 5 # と入力
16
+
17
+ [4, 3, 2, 1]
18
+
11
19
  ```ちなみにlistというのはPythonの標準ライブラリの名前なのでlistという変数や関数は作らない方がいいですよ

1

修正

2020/05/11 21:21

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -1,3 +1,5 @@
1
+ こんな感じですか?
2
+
1
3
  ```Python
2
4
 
3
5
  lst = [int(s) for s in input("-->").split()]