摘要:
题解题目:CodeForces - 602B CodeForces - 717E CodeForces - 746G Codeforce 602B Approximating a Constant Range When Xellos was doing a practice course in un 阅读全文
摘要:
A. Vasya and Book 题意: 给四个数据 n, x, y, d。 n为书总共多少页,x为当前页数,y为目标页数,一次必须翻d页,但是范围在1~n,询问最少翻的次数 情况 1. abs(x-y)%d == 0 正好到达 则输出 abs(x-y)/d 2.往前翻到 1 此时为1 到 y 。 阅读全文
摘要:
A 棋盘问题 #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespace std; char mp[12][12]; int n, k, ans, b[12], m; void dfs( 阅读全文
摘要:
题目链接Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than k friends in 阅读全文