摘要:
DescriptionMr. Tenant is going to buy a new house. In fact, he is going to buy a piece of land and build his new house on it. In order to decide which... 阅读全文
摘要:
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certaintotal number of sweets on that day, no matter how m... 阅读全文
摘要:
输入N和M,M表示接下来会输入M个数,求从1到N中不能被这M个数整出的数的个数。思路:先算出从1到N中能被这M个数整除(即是这M个数中任意一个数的倍数)的数的个数,在用N减去就是答案了。#include #include using namespace std;long long num[20];l... 阅读全文