会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yyer's blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
20
下一页
2019年12月29日
团体程序设计天梯赛-练习集(六)(set容器、L1-033 出生年、L1-050 倒数第N个字符串、L1-006 连续因子、L1-043 阅览室、L1-046 整除光棍 )
摘要: 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
阅读(275)
评论(0)
推荐(0)
2019年12月28日
团体程序设计天梯赛-练习集(五)
摘要: L1-023 输出GPLT (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805113036587008 后面处理如何正确输出GPLT,且对应字母缺少则继续按顺序输出下一个存在的字母时不会处理,其实用一个whi
阅读全文
posted @ 2019-12-28 22:14 yyer
阅读(203)
评论(0)
推荐(0)
团体程序设计天梯赛-练习集(四)(L1-020 帅到没朋友 (20分))
摘要: 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
阅读(325)
评论(0)
推荐(0)
2019年12月25日
团体程序设计天梯赛-练习集(三)(string.replace()函数用法、L1-009、L1-011、L1-025、L1-015、L1-019(*) )
摘要: 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
阅读(243)
评论(0)
推荐(0)
2019年12月21日
算法练习(一)(HDU1002 A+B Problem Ⅱ 大数运算)
摘要: 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
阅读(183)
评论(0)
推荐(0)
团体程序设计天梯赛-练习集(二)(string.reverse()函数用法、string.resize()函数用法、L1-041(*)、L1-039(*)、L1-032(*)、L1-028(*))
摘要: 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
阅读(309)
评论(0)
推荐(0)
2019年12月19日
算法学习(一)(大数运算)(大数相加、大数相减、大数相乘、大数相除(取模、取余)、大数阶乘(求位数、求值))
摘要: 一、大数相乘 #include <cstdio> #include <cstring> #include <string> #include <cmath> #include <algorithm> #include <iostream> using namespace std; int main(
阅读全文
posted @ 2019-12-19 12:39 yyer
阅读(621)
评论(0)
推荐(0)
2019年12月16日
团体程序设计天梯赛-练习集(一)(string.find()、string.erase()、string.insert()、map容器、L1-002 (*)、L1-005、L1-063、L1-058、L1-054 (*)、L1-003 )
摘要: L1-002 打印沙漏 (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805145370476544 #include <cstdio> #include <vector> #include <cstring>
阅读全文
posted @ 2019-12-16 19:17 yyer
阅读(202)
评论(0)
推荐(0)
2019年12月15日
PTA基础编程题目集(四)(直接插入排序、希尔排序、大数阶乘、6-10 阶乘计算升级版、6-11 求自定类型元素序列的中位数)
摘要: 直接插入排序: https://www.cnblogs.com/skywang12345/p/3596746.html /* * 快速排序 * * 参数说明: * a -- 待排序的数组 * l -- 数组的左边界(例如,从起始位置开始排序,则l=0) * r -- 数组的右边界(例如,排序截至到数
阅读全文
posted @ 2019-12-15 00:20 yyer
阅读(743)
评论(0)
推荐(0)
2019年12月12日
PTA基础编程题目集(三)(7-29 删除字符串中的子串 、7-26 单词长度、6-7 统计某类完全平方数)
摘要: 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
阅读(674)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
20
下一页
公告