会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yyer's blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
20
下一页
2020年2月25日
数据结构-起步能力自测题
摘要: 自测-1 打印沙漏 (20分) https://pintia.cn/problem-sets/17/problems/260 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 us
阅读全文
posted @ 2020-02-25 20:56 yyer
阅读(272)
评论(0)
推荐(0)
2020年2月12日
C. Friends and Gifts
摘要: Codeforces Round #611 (Div. 3) 题意:给定的一维数组中,每i个元素为f(i),f(i)有两种取值,若f(i)为0,表示第i人不知道将礼物给谁,若f(i)>=1&&f(i)<=n表示第i人将礼物送给第f(i)人,要注意题目规定每个人只能收一件礼物也只能发一件礼物给别人,而
阅读全文
posted @ 2020-02-12 17:46 yyer
阅读(462)
评论(0)
推荐(1)
2020年2月11日
B1. K for the Price of One (Easy Version)(贪心、简单dp)
摘要: Codeforces Round #610 (Div. 2) https://codeforces.com/problemset/problem/1282/B1 题意:购买商品简单版:Vasya想用钱买尽可能多的商品数,这里k为2,即允许任意买的两件商品中只为其中较贵的商品付款,而且这种机会在每种情
阅读全文
posted @ 2020-02-11 20:23 yyer
阅读(287)
评论(0)
推荐(0)
B. Azamon Web Services(贪心)
摘要: Codeforces Round #607 (Div. 2) https://codeforces.com/problemset/problem/1281/B 题意:每个测试用例给定两个字符串chr1,chr2,若按字典序排序前者小于后者则直接输出chr1,否则对chr1字符数组最多交换一对字符,若
阅读全文
posted @ 2020-02-11 17:10 yyer
阅读(234)
评论(0)
推荐(0)
2020年2月9日
PTA乙级(*1050 螺旋矩阵 (25分))
摘要: 1050 螺旋矩阵 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805275146436608 https://paste.ubuntu.com/p/Dn7fQ9Gf73/ #include <cstdio>
阅读全文
posted @ 2020-02-09 17:55 yyer
阅读(316)
评论(0)
推荐(0)
2020年2月5日
PTA乙级 (*1095 解码PAT准考证 (25分))
摘要: 1095 解码PAT准考证 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/1071786104348536832 题目大意:给出一组学生的准考证号和成绩,准考证号包含了等级(乙甲顶),考场号,日期,和个人编号信息,并
阅读全文
posted @ 2020-02-05 23:22 yyer
阅读(427)
评论(0)
推荐(0)
2020年2月4日
PTA乙级 (*1034 有理数四则运算 (20分)(string.append()))
摘要: 1034 有理数四则运算 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805287624491008 本题代码: #include <iostream> #include <cmath> #include <
阅读全文
posted @ 2020-02-04 21:41 yyer
阅读(243)
评论(0)
推荐(0)
PTA乙级 (*1084 外观数列 (20分)(int转换成string:to_string))
摘要: 1084 外观数列 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805260583813120 #include <iostream> #include <cstdio> #include <cmath> #
阅读全文
posted @ 2020-02-04 20:09 yyer
阅读(211)
评论(0)
推荐(0)
2020年2月3日
PTA乙级 (*1044 火星数字 (20分))
摘要: 1044 火星数字 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805279328157696 #include <iostream> #include <cstdio> #include <cstring>
阅读全文
posted @ 2020-02-03 23:02 yyer
阅读(230)
评论(0)
推荐(0)
PTA乙级 (1020 月饼 (25分))
摘要: 1020 月饼 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 #include <iostream> #include <cstdio> #include <cstring> #
阅读全文
posted @ 2020-02-03 19:44 yyer
阅读(322)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
20
下一页
公告