- 博客(4)
- 收藏
- 关注
原创 map(c++)
mapmap<key, value>0.创建mapmap<int, int>mp //创建一个mapmap<int,int> mp{{1,2},{2,2}}; //创建并初始化map<int,int> mp1(mp); //复制已有的map1.begin() && end()mp.begin() //指向第一个元素mp.end()
2022-03-24 19:51:30
1892
原创 pta-java语法2
7-3 字母-数字转换 (13 分)输入一个由英文字母组成的字符串(大小写均可),将所有英文字母转换成它们在字母表中的序号,例如:“AbbcD”转换为“12234”。输入格式:由英文字母组成的字符串(大小写均可)。例如:“AbbcD” 若包含非英文字母,视为非法输入。输出格式:所有英文字母转换成它们在字母表中的序号,例如:“12234”。 非法输入输出"Wrong Format".输入样例:在这里给出一组输入。例如:AbbcD输出样例:在这里给出相应的输出。例如:12234输入样例1
2022-03-19 21:40:24
771
原创 pta-java语法1
a+b+c+d=?DescriprionThis is a very simple problem! Your only job is to calculate a+b+c+d.InputIn the first line, there is a single integer T(T≤200), which indicates the number of test cases.In the next T lines, each line contains four integers a,b,c a
2022-03-02 20:58:42
1025
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人