質問編集履歴

4

直しました

2022/03/01 14:08

投稿

Fujbgyutf
Fujbgyutf

スコア22

test CHANGED
File without changes
test CHANGED
@@ -1,8 +1,7 @@
1
1
  https://atcoder.jp/contests/abc241/tasks/abc241_b
2
+ この問題を解いているのですが
2
3
 
3
-
4
- `
4
+ ```ここに言語を入力
5
-
6
5
  N=input ('Nを入力してください')
7
6
  N=int(N)
8
7
  M=input('Mを代入してください')
@@ -64,8 +63,7 @@
64
63
  print('不可能です')
65
64
 
66
65
  print('可能です')
67
-
68
- `
66
+ ```
69
67
 
70
68
  b[i+1]=len(A.remove(B[i]))
71
69
  ここでエラーが出ます。
@@ -73,4 +71,4 @@
73
71
  なぜA.remove(B[i])がnonetypeになるのでしょうか?
74
72
 
75
73
 
76
- よろしくお願いお願い申し上げます申し上げます
74
+ よろしくお願い申し上げます。

3

直しました

2022/03/01 14:02

投稿

Fujbgyutf
Fujbgyutf

スコア22

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
 
4
4
  `
5
+
5
6
  N=input ('Nを入力してください')
6
7
  N=int(N)
7
8
  M=input('Mを代入してください')
@@ -63,7 +64,8 @@
63
64
  print('不可能です')
64
65
 
65
66
  print('可能です')
67
+
66
- ˋ
68
+ `
67
69
 
68
70
  b[i+1]=len(A.remove(B[i]))
69
71
  ここでエラーが出ます。

2

多分インデント処理が出来ました

2022/03/01 14:00

投稿

Fujbgyutf
Fujbgyutf

スコア22

test CHANGED
File without changes
test CHANGED
@@ -1,7 +1,7 @@
1
1
  https://atcoder.jp/contests/abc241/tasks/abc241_b
2
2
 
3
3
 
4
-
4
+ `
5
5
  N=input ('Nを入力してください')
6
6
  N=int(N)
7
7
  M=input('Mを代入してください')
@@ -63,7 +63,7 @@
63
63
  print('不可能です')
64
64
 
65
65
  print('可能です')
66
-
66
+ ˋ
67
67
 
68
68
  b[i+1]=len(A.remove(B[i]))
69
69
  ここでエラーが出ます。

1

インデントがおかしかったので修正しました。

2022/03/01 13:49

投稿

Fujbgyutf
Fujbgyutf

スコア22

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,5 @@
1
1
  https://atcoder.jp/contests/abc241/tasks/abc241_b
2
- この問題なのですが、
2
+
3
3
 
4
4
 
5
5
  N=input ('Nを入力してください')
@@ -69,3 +69,6 @@
69
69
  ここでエラーが出ます。
70
70
  object of type 'nonetype' has no len()
71
71
  なぜA.remove(B[i])がnonetypeになるのでしょうか?
72
+
73
+
74
+ よろしくお願いお願い申し上げます申し上げます。