上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页
摘要: 题目链接 https://vjudge.net/problem/UVA-11995一道数据结构的模拟水题,在取出元素之前一定要注意判断集合是否为空,不然会WA#includeusing namespace std;int n;stack st;queue q... 阅读全文
posted @ 2018-03-10 21:30 不想吃WA的咸鱼 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://vjudge.net/problem/UVA-11995一道数据结构的模拟水题,在取出元素之前一定要注意判断集合是否为空,不然会WA#includeusing namespace std;int n;stack st;queue q... 阅读全文
posted @ 2018-03-10 21:30 不想吃WA的咸鱼 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1009【题目描述】 给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。 例如:n = 12... 阅读全文
posted @ 2018-03-10 20:57 不想吃WA的咸鱼 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1009【题目描述】 给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。 例如:n = 12... 阅读全文
posted @ 2018-03-10 20:57 不想吃WA的咸鱼 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1305【题目描述】 有这样一段程序,fun会对整数数组A进行求值,其中Floor表示向下取整:fun(A) sum... 阅读全文
posted @ 2018-03-09 22:27 不想吃WA的咸鱼 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1305【题目描述】 有这样一段程序,fun会对整数数组A进行求值,其中Floor表示向下取整:fun(A) sum... 阅读全文
posted @ 2018-03-09 22:27 不想吃WA的咸鱼 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://vjudge.net/problem/POJ-1845【题目描述】 Consider two natural numbers A and B. Let S be the sum of all natural divisors of ... 阅读全文
posted @ 2018-02-28 16:48 不想吃WA的咸鱼 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://vjudge.net/problem/POJ-1845【题目描述】 Consider two natural numbers A and B. Let S be the sum of all natural divisors of ... 阅读全文
posted @ 2018-02-28 16:48 不想吃WA的咸鱼 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 唯一分解定理,找出一个数n的所有素因子typedef long long ll;ll fac[10050], num;//素因数,素因数的个数void init(ll n) {//唯一分解定理 num = 0; ll cpy = n; in... 阅读全文
posted @ 2018-02-25 20:52 不想吃WA的咸鱼 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 唯一分解定理,找出一个数n的所有素因子typedef long long ll;ll fac[10050], num;//素因数,素因数的个数void init(ll n) {//唯一分解定理 num = 0; ll cpy = n; in... 阅读全文
posted @ 2018-02-25 20:52 不想吃WA的咸鱼 阅读(238) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页