回答編集履歴

1

追記

2020/06/10 04:47

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -15,3 +15,31 @@
15
15
 
16
16
 
17
17
  f_displayの型は一次元のndarrayでも組み込みのリストでも動きます。
18
+
19
+
20
+
21
+ 書いてみた
22
+
23
+ ---
24
+
25
+ おもしろそうだったので。
26
+
27
+ ```Python
28
+
29
+ import sys
30
+
31
+
32
+
33
+ _, _, w = map(int, input().split())
34
+
35
+
36
+
37
+ s = ''.join(map(str.rstrip, sys.stdin))
38
+
39
+ while s:
40
+
41
+ line, s = s[:w], s[w:]
42
+
43
+ print(line)
44
+
45
+ ```