質問編集履歴
2
追加してみました
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,8 @@
|
|
52
52
|
|
53
53
|
import java.io.PrintWriter;
|
54
54
|
|
55
|
+
import java.util.Scanner;
|
56
|
+
|
55
57
|
|
56
58
|
|
57
59
|
public class aaa {
|
@@ -156,15 +158,19 @@
|
|
156
158
|
|
157
159
|
|
158
160
|
|
159
|
-
//ここ
|
161
|
+
//追加ここから
|
162
|
+
|
160
|
-
|
163
|
+
Scanner scanner=new Scanner(System.in);
|
164
|
+
|
161
|
-
|
165
|
+
int v = scanner.nextInt();
|
166
|
+
|
162
|
-
|
167
|
+
System.out.println("抜き出したい行数は?"+v);
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
168
|
+
|
169
|
+
|
170
|
+
|
167
|
-
for (i =
|
171
|
+
for (int i = 1; i < tate+1; i++) {
|
172
|
+
|
173
|
+
if( v == i){
|
168
174
|
|
169
175
|
for (int j = 0; j < 1; j++) {
|
170
176
|
|
@@ -178,6 +184,8 @@
|
|
178
184
|
|
179
185
|
bw.write("\r\n");
|
180
186
|
|
187
|
+
|
188
|
+
|
181
189
|
}
|
182
190
|
|
183
191
|
}
|
1
質問文の書き方の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
```java
|
36
36
|
|
37
37
|
import java.io.BufferedReader;
|
38
38
|
|
@@ -199,3 +199,5 @@
|
|
199
199
|
}
|
200
200
|
|
201
201
|
}
|
202
|
+
|
203
|
+
```
|