回答編集履歴
1
Shortened 1 letter
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```C
|
2
2
|
|
3
|
-
p,q,m,i;main(f){char s[8],t[8];scanf("%d:%s%d:%s%d",&p,s,&q,t,&m);
|
3
|
+
p,q,m,i;main(f){char s[8],t[8];for(scanf("%d:%s%d:%s%d",&p,s,&q,t,&m);i++<m;)f=i%p||!printf(s),i%q||(f=!printf(t)),printf(f?"%d ":"\n",i);}
|
4
4
|
|
5
5
|
```
|
6
6
|
|