
思维
文章平均质量分 70
cloudy_happy
像我这样优秀的人,不该平凡过一生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforces 998-Cvacations 思路题
. Vacationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n days of vacations! So he decided to improve his IT skills ...原创 2018-08-02 20:55:15 · 208 阅读 · 0 评论 -
codeforces Round div3 D题 Polycarp and Div 3 思考
Polycarp and Div 3Polycarp likes numbers that are divisible by 3.He has a huge number ss. Polycarp wants to cut from it the maximum number of numbers that are divisible by 33. To do this, he makes...原创 2018-08-11 23:19:06 · 240 阅读 · 0 评论 -
codeforces895A Pizza Separation 思维
Pizza Separationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputStudents Vasya and Petya are studying at the BSU (Byteland State University)....原创 2018-08-19 22:41:14 · 213 阅读 · 0 评论 -
51nod1347 旋转字符串 思维
旋转字符串 S0...n−10...n−1是一个长度为n的字符串,定义旋转函数Left(S)=S1…n−11…n−1+S00.比如S=”abcd”,Left(S)=”bcda”.一个串是对串当且仅当这个串长度为偶数,前半段和后半段一样。比如”abcabc”是对串,”aabbcc”则不是。现在问题是给定一个字符串,判断他是否可以由一个对串旋转任意次得到。 Input第1行:给...原创 2018-08-26 21:24:10 · 359 阅读 · 0 评论 -
hpuoj1006 思维
1006: 机房的位置(二) [思维]时间限制: 1 Sec 内存限制: 128 MB提交: 941 解决: 302 统计题目描述机房里面有一排大佬专座,这一排共有NN个位置,已知任意两个大佬之间必须空有至少一个位置。问最少需要多少个大佬可以完全占用这NN个位置使得不会有任何人入座。输入第一行输入一个整数TT,代表有TT组测试数据。每组数据输入一个整数NN,代表有NN个位...原创 2018-11-06 18:29:49 · 178 阅读 · 0 评论