题解
水天宫
这个作者很懒,什么都没留下…
展开
-
CodeForces - 1097B Petr and a Combination Lock
题目链接:https://vjudge.net/problem/CodeForces-1097B题目描述:Petr has just bought a new car. He’s just arrived at the most known Petersburg’s petrol station to refuel it when he suddenly discovered that the...原创 2019-12-10 08:00:09 · 254 阅读 · 0 评论 -
CodeForces - 869B:The Eternal Immortality
题目链接:https://vjudge.net/problem/CodeForces-869B题目描述:Even if the world is full of counterfeits, I still regard it as wonderful.Pile up herbs and incense, and arise again from the flames and ashes of...原创 2019-12-10 07:50:01 · 124 阅读 · 0 评论 -
CodeForces - 1249C1 Good Numbers (easy version)
题目链接:https://vjudge.net/problem/CodeForces-1249C1题目描述:因为万圣节数字都是用3的不同次幂组成的,所以对于每个3的幂来说, 只有可以用来组成万圣节数字和不能用来组成万圣节数字两种情况,这题因为是easy version, n给的比较小,所以我们给定一个区间直接暴☆搜出所有在区间内大于等于n的数然后取最小值即可#include<set...原创 2019-12-10 07:32:52 · 388 阅读 · 0 评论 -
CodeForces - 1194A : Remove a Progression
题目链接:https://vjudge.net/problem/CodeForces-1194A题目描述:You have a list of numbers from 1 to n written from left to right on the blackboard.You perform an algorithm consisting of several steps (steps ...原创 2019-12-09 22:17:56 · 140 阅读 · 0 评论 -
HRBUST - 2039 麦森数
题目链接:https://vjudge.net/problem/HRBUST-2039题目描述:形如2^p-1 的素数被成为麦森数,这时p一定是一个素数。但是这么命题的逆命题却不一定成立,即如果p是一个素数,2^p-1不一定是一个素数。到1998年底,人们已经找到了37个麦森数。最大的一个是P=3021377 ,它有909526位。麦森数有许多重要的应用,它与完全数密切相关。现在给出P,计算...原创 2019-12-09 21:56:03 · 104 阅读 · 0 评论