思维
文章平均质量分 65
cloudy_happy
像我这样优秀的人,不该平凡过一生
展开
-
codeforces 998-Cvacations 思路题
. Vacations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya has n days of vacations! So he decided to improve his IT skills ...原创 2018-08-02 20:55:15 · 158 阅读 · 0 评论 -
codeforces Round div3 D题 Polycarp and Div 3 思考
Polycarp and Div 3 Polycarp 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 · 173 阅读 · 0 评论 -
codeforces895A Pizza Separation 思维
Pizza Separation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Students Vasya and Petya are studying at the BSU (Byteland State University)....原创 2018-08-19 22:41:14 · 158 阅读 · 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 · 294 阅读 · 0 评论 -
hpuoj1006 思维
1006: 机房的位置(二) [思维] 时间限制: 1 Sec 内存限制: 128 MB 提交: 941 解决: 302 统计 题目描述 机房里面有一排大佬专座,这一排共有NN个位置,已知任意两个大佬之间必须空有至少一个位置。问最少需要多少个大佬可以完全占用这NN个位置使得不会有任何人入座。 输入 第一行输入一个整数TT,代表有TT组测试数据。 每组数据输入一个整数NN,代表有NN个位...原创 2018-11-06 18:29:49 · 144 阅读 · 0 评论