题目1065:输出梯形
来源:互联网 发布:怎么入侵网站数据库 编辑:程序博客网 时间:2024/06/07 17:34
#include<iostream>#include<cstdio>#include<cstring>#include<cassert>using namespace std;int main(){ int n; while(scanf("%d",&n)!=EOF) { int n2=n*3-2; int n3=n*2-2; for(int i=0;i<n;i++) { int j=0; n3=n*2-2-i*2; for(;j<n3;j++) { putchar(' '); } for(;j<n2;j++) { putchar('*'); } putchar('\n'); } }#ifdef _DEBUG system("pause");#endif return 0;} /************************************************************** Problem: 1065 User: cust123 Language: C++ Result: Accepted Time:60 ms Memory:1520 kb****************************************************************/
0 0
- 题目1065:输出梯形
- 题目1065:输出梯形
- 题目1065:输出梯形
- 题目1065:输出梯形
- 题目1065:输出梯形
- 题目1065:输出梯形
- 题目1065:输出梯形
- 14-题目1065:输出梯形
- 九度题目1065:输出梯形
- 九度OJ题目1065:输出梯形
- 九度OJ 题目1065:输出梯形
- 【九度】题目1065:输出梯形
- 题目1065:输出梯形【排版题】
- 【九度】题目1065:输出梯形
- 九度OJ题目1065:输出梯形
- 题目14:输出梯形
- 题目14:输出梯形
- 题目1065 输出梯形 九度Online Judge
- Spark 内存管理之StaticMemoryManager
- 函数外局部变量 null问题
- error C2220: warning treated as error
- JDK5新特性_自己实现枚举类
- 领域模型
- 题目1065:输出梯形
- 网络编程碎知识之由目标IP怎么知道目标MAC地址
- react-native-country-picker-modal手机通讯录
- comet4j 消息推送配置
- SpringBoot基本讲解(配置文件)
- 指示函数与符号函数
- android仿微信选择器同时展示视频和图片
- 最短进程优先(Shortest Process First,SPF)调度算法
- JNI/NDK开发指南(十)