1 solutions
-
0
#include<stdio.h> int main(){ int m,n,o,i,j,k; char c; scanf("%d %d %c %d",&m,&n,&c,&k); for(i=1;i<=m;i++){ for(j=1;j<=n;j++){ if(k1){printf("%c",c); } if(k0){if(i1||im){printf("%c",c);} if(i>1&&i<m){printf("%c",c); for(o=1;o<=n-2;o++){ printf(" "); j++; } printf("%c",c);j++;} } } if((j-1)==n)printf("\n"); } return 0; }
- 1
Information
- ID
- 6759
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 5
- Tags
- (None)
- # Submissions
- 118
- Accepted
- 45
- Uploaded By