摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2565简单题:i+j<n-1,是对图形的上半部分空格的控制。i>j , 是对图形下半部分空格的控制。View Code #include"iostream"using namespace std;int main(){ int t; int n; cin>>t; while(t--) { int i,j; cin>>n; for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(i==j||i+j==n-1) cout 阅读全文
posted @ 2011-04-27 08:49 聊聊IT那些事 阅读(315) 评论(0) 推荐(0) 编辑