1036. 跟奥巴马一起编程(15)
来源:互联网 发布:gulp 压缩js css 编辑:程序博客网 时间:2024/05/16 02:04
注意四舍五入
#include<iostream>#include<cstdio>#include<cstring>#include<string>#include<vector>using namespace std;int main(){ double N; char C; while(cin>>N) { getchar(); C=getchar(); getchar(); for( int i=0; i<int(N/2+0.5); i++ ) { for( int j=0; j<N; j++ ) { if( i==0 || i==int(N/2+0.5)-1 ) cout<<C; else if( j==0 || j==N-1 ) cout<<C; else cout<<' '; } cout<<endl; } } return 0;}
0 0
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- 1036. 跟奥巴马一起编程(15)
- hdu 5228 ZCC loves straight flush && BestCoder Round #41 1001
- Oracle的游标
- 关于Fragment中返回键(onBackPressed)的处理
- theano卷积神经网络-场景
- Win7上安装ROR环境
- 1036. 跟奥巴马一起编程(15)
- messagesource读取properties
- BaseAdapter的使用
- jquery 停留几秒后显示,离开隐藏
- ppp = 2.4.4 is needed by pptpd-1.3.4-2.rhel5.x86_64的解决办法及原因
- 黑马程序员---基础加强:类加载器
- 简单词法分析程序
- [转]用pyenv 和 virtualenv 搭建单机多版本python 虚拟开发环境
- 完全平方数的个数