摘要: 1015 德才论 (25分) 分四个等级的排序,想简化的朋友可以用结构体数组容器存储啦~ #include<iostream> #include<vector> #include<ctype.h> #include<algorithm> #include<sstream> #include<stri 阅读全文
posted @ 2020-06-10 19:56 chstor 阅读(132) 评论(0) 推荐(0)
摘要: 1024 科学计数法 (20分) substr():substr(起始位置,往后要几个字符) stoi():string转换为int,参数必须是字符串,字符的话用substr(ch,1)转换为字符串 常用字符串处理函数: 参数是字符即可 isalpha();//是否为字母 isdigit();//是 阅读全文
posted @ 2020-06-10 11:04 chstor 阅读(126) 评论(0) 推荐(0)
摘要: 1014 福尔摩斯的约会 (20分) 这道题坑多,看清题目要求 第 1 对相同的大写英文字母(大小写有区分)是第 4 个字母 D,只能是A~G 第 2 对相同的字符:0 点到 23 点由数字 0 到 9、以及大写字母 A 到 N 表示 后面两字符串第 1 对相同的英文字母 s 出现在第 4 个位置( 阅读全文
posted @ 2020-06-10 10:58 chstor 阅读(128) 评论(0) 推荐(0)
摘要: 1031 查验身份证 (15分) 把不符合的输出 没有就输出All passed #include<iostream> #include<ctype.h> #include<sstream> #include<string> #include<cstdio> const int maxn=110; 阅读全文
posted @ 2020-06-10 10:50 chstor 阅读(189) 评论(0) 推荐(0)