上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: L1-050 倒数第N个字符串 (15分) https://pintia.cn/problem-sets/994805046380707840/problems/994805080346181632 1 #include <cstdio> 2 #include <cstring> 3 #includ 阅读全文
posted @ 2019-12-29 16:57 yyer 阅读(224) 评论(0) 推荐(0) 编辑
摘要: L1-023 输出GPLT (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805113036587008 后面处理如何正确输出GPLT,且对应字母缺少则继续按顺序输出下一个存在的字母时不会处理,其实用一个whi 阅读全文
posted @ 2019-12-28 22:14 yyer 阅读(183) 评论(0) 推荐(0) 编辑
摘要: L1-020 帅到没朋友 (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805117167976448 setw()及setfill()使用方法 1 cout<<setw(5)<<setfill('0')<<r 阅读全文
posted @ 2019-12-28 09:02 yyer 阅读(312) 评论(0) 推荐(0) 编辑
摘要: L1-009 N个数求和 (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805133597065216 第一次得17分,少考虑分子为负情况 if(sum2<0) { sum2*=-1; cout<<"-"; } 阅读全文
posted @ 2019-12-25 19:50 yyer 阅读(222) 评论(0) 推荐(0) 编辑
摘要: HDU1002 A+B Problem Ⅱ https://vjudge.net/contest/310259#problem/B #include <cstdio> #include <cstring> #include <string> #include <iostream> #include 阅读全文
posted @ 2019-12-21 12:05 yyer 阅读(176) 评论(0) 推荐(0) 编辑
摘要: L1-041 寻找250 (10分) https://pintia.cn/problem-sets/994805046380707840/problems/994805089657536512 #include <cstdio> #include <iostream> using namespace 阅读全文
posted @ 2019-12-21 11:58 yyer 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 一、大数相乘 #include <cstdio> #include <cstring> #include <string> #include <cmath> #include <algorithm> #include <iostream> using namespace std; int main( 阅读全文
posted @ 2019-12-19 12:39 yyer 阅读(555) 评论(0) 推荐(0) 编辑
摘要: L1-002 打印沙漏 (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805145370476544 #include <cstdio> #include <vector> #include <cstring> 阅读全文
posted @ 2019-12-16 19:17 yyer 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 直接插入排序: https://www.cnblogs.com/skywang12345/p/3596746.html /* * 快速排序 * * 参数说明: * a -- 待排序的数组 * l -- 数组的左边界(例如,从起始位置开始排序,则l=0) * r -- 数组的右边界(例如,排序截至到数 阅读全文
posted @ 2019-12-15 00:20 yyer 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 7-29 删除字符串中的子串 (20分) https://pintia.cn/problem-sets/14/problems/809 string常用函数https://blog.csdn.net/fdqw_sph/article/details/54233971 法一代码: #include < 阅读全文
posted @ 2019-12-12 21:11 yyer 阅读(644) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页