摘要:
1005 继续(3n+1)猜想 (25分) 输入的数列里面,输出“关键数”(没被覆盖的) 标记一下n往后的就可以了,标记的是覆盖的 eg:{3、5、8、4、2、1},标记{5、8、4、2} #include<iostream> #include<vector> #include<cctype> #i 阅读全文
posted @ 2020-06-11 19:34
chstor
阅读(103)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<vector> #include<cctype> #include<map> #include<set> #include<sstream> #include<string> #include<cstdio> #include<algorith 阅读全文
posted @ 2020-06-11 19:31
chstor
阅读(120)
评论(0)
推荐(0)
摘要:
1043 输出PATest (20分) 注意控制已有字符的输出 存放的输出了就减一,存放个数必须大于零 #include<iostream> #include<vector> #include<cctype> #include<map> #include<set> #include<sstream> 阅读全文
posted @ 2020-06-11 19:29
chstor
阅读(198)
评论(0)
推荐(0)
摘要:
1042 字符统计 (20分) 本题只让输出小写字母 小写字母转换为数字0~25 输出的时候再转换回来 #include<iostream> #include<vector> #include<cctype> #include<map> #include<set> #include<sstream> 阅读全文
posted @ 2020-06-11 19:25
chstor
阅读(98)
评论(0)
推荐(0)
摘要:
1039 到底买不买 (20分) 甲级也有一样的题 #include<iostream> #include<vector> #include<cctype> #include<algorithm> #include<sstream> #include<string> #include<cstdio> 阅读全文
posted @ 2020-06-11 19:24
chstor
阅读(87)
评论(0)
推荐(0)
摘要:
1038 统计同成绩学生 (20分) #include<iostream> #include<vector> #include<cctype> #include<algorithm> #include<sstream> #include<string> #include<cstdio> const 阅读全文
posted @ 2020-06-11 19:22
chstor
阅读(113)
评论(0)
推荐(0)
摘要:
测试点2有个坑就是不能用cin来输入字符 题目保证第二行输入非空,第一行可能是空,cin读不了空字符 #include<iostream> #include<vector> #include<cctype> #include<algorithm> #include<sstream> #include 阅读全文
posted @ 2020-06-11 08:27
chstor
阅读(103)
评论(0)
推荐(0)
摘要:
1029 旧键盘 (20分) 用str【200】来标记已经输出的字符,散列查找 #include<iostream> #include<vector> #include<ctype.h> #include<algorithm> #include<sstream> #include<string> # 阅读全文
posted @ 2020-06-11 08:24
chstor
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号