*------------* |............| |............| |............| |............| |............| |............| |............| |............| |............| |............| *------------*
*------------* |............| |............| |............| |............| |------------| |------------| |------------| |------------| |------------| |------------| *------------*
2 0 60
Case #1: *------------* |............| |............| |............| |............| |............| |............| |............| |............| |............| |............| *------------* Case #2: *------------* |............| |............| |............| |............| |------------| |------------| |------------| |------------| |------------| |------------| *------------*
#include<cstdio>
int main()
{
  int t;
  int n,k=1;
  scanf("%d",&t);
  while(t--)
  {
    scanf("%d",&n);
	printf("Case #%d:\n",k++);
	printf("*------------*\n");
	for(int i=0;i<10-n/10;i++)
		printf("|............|\n");
	for(int j=0;j<n/10;j++)
	printf("|------------|\n");
		printf("*------------*\n");
  }
  return 0;
}A Computer Graphics Problem 4176 2013上海邀请赛,布布扣,bubuko.com
A Computer Graphics Problem 4176 2013上海邀请赛
原文地址:http://blog.csdn.net/chaoyueziji123/article/details/37912881