当前位置:网站首页>1004: character triangle
1004: character triangle
2022-06-12 13:23:00 【Xiao Liu wants to be number one】
1004: Character triangles
The time limit : 1000 ms Memory limit : 66536 KB
Submission number : 138209 Passing number : 76391
【 Title Description 】
Given a character , Use it to construct a long bottom edge 5 Characters , high 3 Isosceles triangle of characters .
【 Input 】
There is only one line of input , Contains one character .
【 Output 】
The character forms an isosceles triangle , Long bottom edge 5 Characters , high 3 Characters .
【 sample input 】
*
【 sample output 】
*
***
*****
#include<iostream>
using namespace std;
int main()
{
int i;
char a;
cin >> a;
for (i = 1; i <= 3; i++)
{
if (i == 1)
cout << " " << a << " " << endl;
else if (i == 2)
cout << " " << a << a << a << " " << endl;
else
cout << a << a << a << a << a ;
}
}
边栏推荐
- 【云原生 | Kubernetes篇】Ingress案例实战
- Build an embedded system software development environment - build a cross compilation environment
- C#DBHelper_FactoryDB_GetConn
- Realization of Joseph Ring with one-way ring linked list
- LeetCode滑动窗口刷题总结
- torch_ About the geometric Mini batch
- 多源BFS问题 模板(附题)
- list和dict的应用
- 简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链
- Semantic segmentation with pytorch
猜你喜欢

嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法

About paiwen

创新实训(十一)开发过程中的一些bug汇总

Pytorch to onnx, onnxruntime reasoning in mmclas

How to adapt the page size when iframe is embedded in a web page
![[you code, I fix] whitesource was officially renamed mend](/img/0f/75ac1d0b08244ed689733d38551a61.jpg)
[you code, I fix] whitesource was officially renamed mend

STM32F1与STM32CubeIDE编程实例-设备驱动-EEPROM-AT24C256驱动

C#DBHelper_FactoryDB_GetConn

Actual combat | realizing monocular camera ranging by skillfully using pose solution

Chrome debugging tool
随机推荐
Newoj week 10 question solution
多源BFS问题 模板(附题)
[wechat applet development] Part 1: development tool installation and program configuration
入门深度学习与机器学习的经验和学习路径
list和dict的应用
【VIM】. Vimrc configuration, vundle and youcompleteme have been installed
【云原生 | Kubernetes篇】深入了解Ingress
【刷题篇】抽牌获胜的概率
[cloud native | kubernetes] learn more about ingress
Experience and learning path of introductory deep learning and machine learning
import torch_ Geometric first graph network example
【微信小程序开发】第1篇:开发工具安装及程序配置
torch_geometric message passing network
Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
ITK multiresolution image itk:: recursivemultiresolutionpyramidimagefilter
A "murder case" caused by ES setting operation
Build an embedded system software development environment - build a cross compilation environment
A brief introduction to Verilog mode
leetcode 47. Permutations II 全排列 II(中等)
LeetCode滑动窗口刷题总结