当前位置:网站首页>Character pyramid
Character pyramid
2022-07-03 08:50:00 【Cap07】
#include<iostream>
#include<string>
using namespace std;
int main() { //1 3 5 7 2n-1
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= 2 * n - 1; j++) {
if (j <= n - i || j > n-1+i)
cout << " ";
else
cout << (char)(i + 64);
}
cout<<""<< endl;
}
return 0;
}
//00100
//02220
//33333test result :

边栏推荐
- Intersectionpicker in osgearth
- 如何应对数仓资源不足导致的核心任务延迟
- [rust notes] 08 enumeration and mode
- [redis] redis persistent RDB vs AOF (source code)
- Osganimation library parsing
- I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
- Osgearth topographic shading map drawing
- Gif remove blank frame frame number adjustment
- 22-05-26 Xi'an interview question (01) preparation
- Notes and bugs generated during the use of h:i:s and y-m-d
猜你喜欢

Unity editor expansion - draw lines

Monotonic stack -42 Connect rainwater

树形DP AcWing 285. 没有上司的舞会

Really explain the five data structures of redis

UE4 source code reading_ Bone model and animation system_ Animation node

Try to reprint an article about CSDN reprint

Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)

Message queue for interprocess communication

Life cycle of Servlet

Notes on understanding applets 2022/7/3
随机推荐
Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
使用dlv分析golang进程cpu占用高问题
The method for win10 system to enter the control panel is as follows:
LinkedList set
[concurrent programming] collaboration between threads
JS non Boolean operation - learning notes
Life cycle of Servlet
Es8 async and await learning notes
Drawing maze EasyX library with recursive backtracking method
Deeply understand the underlying data structure of MySQL index
【Rust 笔记】10-操作符重载
UE4 source code reading_ Bone model and animation system_ Animation process
Query XML documents with XPath
Alibaba canaladmin deployment and canal cluster Ha Construction
22-06-28 Xi'an redis (02) persistence mechanism, entry, transaction control, master-slave replication mechanism
Unity Editor Extension - drag and drop
Explain sizeof, strlen, pointer, array and other combination questions in detail
[concurrent programming] atomic operation CAS
file_ put_ contents
How to deal with the core task delay caused by insufficient data warehouse resources