牛客网PAT练兵场-旧键盘打字】的更多相关文章

题目地址:https://www.nowcoder.com/pat/6/problem/4059 题解:用数组下标标记,直接模拟 /** * *作者:Ycute *时间:2019-12-01-21.33.21 *题目题意简单描述:用数组下标标记,直接模拟 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vector> usin…
题目地址:https://www.nowcoder.com/pat/6/problem/4050 题解:模拟题 /** * Copyright(c) * All rights reserved. * Author : Ycute * Date : 2019-11-27-20.03.29 * Description : 无 */ #include<iostream> #include<cstdio> #include<cmath> #include<cstring&…
题目地址:https://www.nowcoder.com/pat/6/problem/4054 题解:结构体排序即可 /** * Copyright(c) * All rights reserved. * Author : YCute * Date : 2019-11-19-20.13.37 * Description : 结构体排序 */ #include<iostream> #include<cstdio> #include<cmath> #include<…
题目地址:https://www.nowcoder.com/pat/6/problem/4056 题解:先将a数组进行排序,第一次按题意M<=n*p;n=a[0]时,M最大为J(如下图),然后n从a[0]开始,那么M是从J开始遍历,就可以算出每一次的最大长度.当J到达a数组尾部,时遍历结束.可以算出完美数列最大长度 /** * Copyright(c) * All rights reserved. * Author : YCute * Date : 2019-11-18-21.21.21 * D…
题目地址:https://www.nowcoder.com/pat/6/problem/4053 题意:模拟题 /** * Copyright(c) * All rights reserved. * Author : Ycute * Date : 2019-11-04-17.21.03 * Description : 模拟题 */ #include<iostream> #include<cstdio> #include<cmath> #include<cstrin…
题目地址:https://www.nowcoder.com/pat/6/problem/4063 题意:按照题目的进制计算即可 /** * *作者:Ycute *时间:2019-11-14-21.45.44 *题目题意简单描述:按照题目给定的进制计算即可 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vector> usin…
题目地址:https://www.nowcoder.com/pat/6/problem/4040 题意:模拟题,循环找相同的字母,但是注意题目的坑 /** * *作者:Ycute *时间:2019-11-14-20.12.04 *题目题意简单描述:遍历 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vector> using…
题目地址:https://www.nowcoder.com/pat/6/problem/4043 题解:遍历大数,边除边输出,最后得到余数输出即可 /** * *作者:Ycute *时间:2019-11-14-19.31.22 *题目题解简单描述:遍历相除就好了 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vector>…
题目地址:https://www.nowcoder.com/questionTerminal/79db907555c24b15a9c73f7f7d0e2471 题解:无 /** * *作者:Ycute *时间:2019-12-01-21.11.18 *题目题意简单描述:模拟 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vecto…
题目地址: 题意:无 /** * *作者:Ycute *时间:2019-11-14-21.29.07 *题目题意简单描述:模拟题输出 */ #include<iostream> #include<cmath> #include<cstring> #include<algorithm> #include<vector> using namespace std; int main(){ int n; char a; scanf("%d&qu…