题目大概:
输入n,输入n行数字,接下来,每行按输入顺序,输出每个数字出现的次数后面紧跟该数字。
思路:
用string储存,用循环读取每个数字,再计数,输出。
感想:
这个题有个别数字需要初始化,需要注意。
代码:
输入n,输入n行数字,接下来,每行按输入顺序,输出每个数字出现的次数后面紧跟该数字。
用string储存,用循环读取每个数字,再计数,输出。
这个题有个别数字需要初始化,需要注意。
下一篇:acm书中题目 p-16
题目大概:
题目大概:找出100000以内的3和5的倍数包含自身,输入n,则输出第n个数。
兑换。感想:这个题刚开始是c c++语言混合使用的,提交竟然发现编译错误,虽然两种语言混合使用方便许多,但以后还要尽可能用一种语言。代码:#include #include usi
题目大概:做这个题,思维要严谨,把可能的包含在内,不可能的也不能包含进去。代码:#include using name
#include #include #include #i
转载
一个典型的stackoverflow风格的问题作为文章标题,以此避免挖空心思想名字的纠结。问题描述回到这个问题,常写模板的同学应该能心领神会需求的来源。举个简单例子,在三维数据处理中,经常会和空间点point打交道,point中会有很多种信息需要存储,比如空间坐标 x/y/z,比如法向信息 nx/ny/nz,比如颜色信息 R/G/B等,这些信息并非都是必须,在不同应用中会有不同的取舍
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M