摘要:
题目描述 A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin 阅读全文
摘要:
前序,中序,后序 阅读全文
摘要:
//十进制转成m进制#include #define ll long long #define ull unsigned long long #define ld long double #define maxn 20010 using namespace std; int n,m,l; char s[10000]; int main() { cin>>n>>m; while(... 阅读全文
摘要:
题目描述 The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreti 阅读全文
摘要:
来源:https://blog.csdn.net/lyy289065406/article/details/6648539 题目描述 Consider two natural numbers A and B. Let S be the sum of all natural divisors of A 阅读全文
摘要:
题目描述 求有多少种长度为n的序列A,满足以下条件:1~n这n个数在序列中各出现了一次若第i个数A[i]的值为i,则称i是稳定的。序列恰好有m个数是稳定的满足条件的序列可能很多,序列数对10^9+7取模。 输入 第一行一个数 T,表示有 T 组数据。接下来 T 行,每行两个整数 n、m。T=5000 阅读全文
摘要:
题目描述 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去, 阅读全文
摘要:
题目描述 In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two ad 阅读全文
摘要:
题目描述 We have a sandglass consisting of two bulbs, bulb A and bulb B. These bulbs contain some amount of sand. When we put the sandglass, either bulb A 阅读全文
摘要:
面向搜索引擎编程 阅读全文