回答編集履歴
1
一行で
test
CHANGED
@@ -8,11 +8,7 @@
|
|
8
8
|
|
9
9
|
int N = 4;
|
10
10
|
|
11
|
-
for( int i = 0; i < N*2+1; i++){
|
12
|
-
|
13
|
-
|
11
|
+
for( int i = 0; i < N*2+1; i++) i < N ? printf("%d\n", i+1) : i == N ? printf("\n") : printf("%d\n", N*2+1-i);
|
14
|
-
|
15
|
-
}
|
16
12
|
|
17
13
|
return 0;
|
18
14
|
|