摘要:
D. Ehab and another another xor problem 题目链接:https://codeforces.com/contest/1088/problem/D Description: This is an interactive problem! Ehab plays a g 阅读全文
摘要:
C. Ehab and a 2-operation task 题目链接:https://codeforc.es/contest/1088/problem/C 题意: 给出n个数,然后最多可以进行n+1次操作,可以选择前i个数都加上一个非负数或者模上一个数,使最后这n个数严格递增。 题解: 我说下我的 阅读全文
摘要:
A. Ehab and another construction problem 题目链接:https://codeforc.es/contest/1088/problem/A 题意: 给出一个x,找出这样的a,b满足:1<=a,b<=x,并且a%b=0,a/b<x,a*b>x。 题解: 赛后发现, 阅读全文
摘要:
ACM Computer Factory 题目链接:http://poj.org/problem?id=3436 Description: As you know, all the computers used for ACM contests must be identical, so the p 阅读全文
摘要:
E. Increasing Frequency 题目链接:https://codeforces.com/contest/1082/problem/E 题意: 给出n个数以及一个c,现在可以对一个区间上的数同时加上或减去一个值,问最后c的最多数量为多少。 题解: 这题挺有意思的,我们通过分析题目可以发 阅读全文
摘要:
A. Vasya and Book 题目链接:https://codeforc.es/contest/1082/problem/A 题意: 给出n,x,y,d,x是起点,y是终点,d是可以跳的格数,注意是不能跳出边界,最少跳到1,最多跳到n。问最少跳到y的步数是多少。 题解: 从x到y,有三种途径, 阅读全文