上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 自测-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 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(442) 评论(0) 推荐(1) 编辑
摘要: Codeforces Round #610 (Div. 2) https://codeforces.com/problemset/problem/1282/B1 题意:购买商品简单版:Vasya想用钱买尽可能多的商品数,这里k为2,即允许任意买的两件商品中只为其中较贵的商品付款,而且这种机会在每种情 阅读全文
posted @ 2020-02-11 20:23 yyer 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #607 (Div. 2) https://codeforces.com/problemset/problem/1281/B 题意:每个测试用例给定两个字符串chr1,chr2,若按字典序排序前者小于后者则直接输出chr1,否则对chr1字符数组最多交换一对字符,若 阅读全文
posted @ 2020-02-11 17:10 yyer 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1095 解码PAT准考证 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/1071786104348536832 题目大意:给出一组学生的准考证号和成绩,准考证号包含了等级(乙甲顶),考场号,日期,和个人编号信息,并 阅读全文
posted @ 2020-02-05 23:22 yyer 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1034 有理数四则运算 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805287624491008 本题代码: #include <iostream> #include <cmath> #include < 阅读全文
posted @ 2020-02-04 21:41 yyer 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1084 外观数列 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805260583813120 #include <iostream> #include <cstdio> #include <cmath> # 阅读全文
posted @ 2020-02-04 20:09 yyer 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1044 火星数字 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805279328157696 #include <iostream> #include <cstdio> #include <cstring> 阅读全文
posted @ 2020-02-03 23:02 yyer 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1020 月饼 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 #include <iostream> #include <cstdio> #include <cstring> # 阅读全文
posted @ 2020-02-03 19:44 yyer 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页