当前位置:网站首页>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 ;
}
}
边栏推荐
- Implementing pytorch style deep learning framework similartorch with numpy
- import torch_ Geometric loads some common datasets
- Semantic segmentation with pytorch
- 关于#SQLite写注册功能时,数据表查询出错#的问题,如何解决?
- torch_ About the geometric Mini batch
- B站分布式KV存储混沌工程实践
- 成功定级腾讯T3-2,万字解析
- 【微信小程序开发】第1篇:开发工具安装及程序配置
- 入门深度学习与机器学习的经验和学习路径
- A "murder case" caused by ES setting operation
猜你喜欢

Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem

5V升压到12.6V的锂电池充电IC芯片方案FS4062B

imagemagick:a gentle introduction to magick++

Overview of embedded system 3- development process, learning basis and methods of embedded system

Known as the next generation monitoring system! See how awesome it is

It is enough to read this article. Web Chinese development

Installation of pagoda

Realization of Joseph Ring with one-way ring linked list

嵌入式系統硬件構成-基於ARM的嵌入式開發板介紹

leetcode 47. Permutations II full permutations II (medium)
随机推荐
Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo
Pytoch official fast r-cnn source code analysis (I) -- feature extraction
Innovation training (XI) summary of some bugs in the development process
苹果电脑上MySQL安装完成找不到怎么办
Wechat web developer tools tutorial, web development issues
Resume NFT platform trustrecruit joined Octopus network as a candidate application chain
嵌入式系统概述2-嵌入式系统组成和应用
Overview of embedded system 2- composition and application of embedded system
R language ggplot2 visualization: use the ggrep package to add a number label to the data point at the end of the line plot
torch_geometric mini batch 的那些事
403 you don't have permission to access this resource
Stm32f1 and stm32subeide programming example - device driver -dht11 temperature sensor driver
软件构造 03 正则表达式
hudi 键的生成(Key Generation)
创新实训(十二)项目总结
What is the function tag? Article to understand its role and its best practices
高通平台开发系列讲解(协议篇)QMI简单介绍及使用方法
The goods are full. You must take this knowledge
简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链
Getting to know blob objects