会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tank..
博客园
首页
新随笔
联系
管理
订阅
2014年10月9日
Acdream 1174 Sum 暴力
摘要: https://www.zybuluo.com/397915842/note/34516
阅读全文
posted @ 2014-10-09 21:25 Tank..
阅读(119)
评论(0)
推荐(0)
2014年8月14日
Acdream 1114 Number theory 莫比乌斯反演
摘要: http://acdream.info/problem?pid=1114题目大意,给你一个序列a,求出这个序列中互质数的有多少对。其中所有的整数的都小于等于222222。f(d) 为 gcd 恰好为 d 的数的对数, F(d) 为 gcd 为 d 的倍数的对数, μ(d) 表示莫比乌斯函数F(d) ...
阅读全文
posted @ 2014-08-14 20:48 Tank..
阅读(258)
评论(0)
推荐(0)
Acdream 1007 快速幂,模乘法
摘要: http://acdream.info/problem?pid=1007题目大意,给你n个数,输出这n个数的k次方的和,注意最后的结果得是正数。刚开始因为模乘法没有考虑好,一直死wa不过,后来在模乘法中特判一下,终于ac了。#includetypedef long long LL;const LL ...
阅读全文
posted @ 2014-08-14 18:25 Tank..
阅读(333)
评论(0)
推荐(0)
2014年6月19日
UVa 10023 - Square root 大数开方
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=964题目大意,给一个数y(1 2 #include 3 #include 4 #include 5...
阅读全文
posted @ 2014-06-19 15:58 Tank..
阅读(428)
评论(0)
推荐(0)
2014年6月16日
UVa 11027 - Palindromic Permutation 回文串,组合加搜索
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=115&page=show_problem&problem=1968题目大意是,给你一串字符串,输出它的字典序的第n个回文字符串。如果没有或者没...
阅读全文
posted @ 2014-06-16 23:37 Tank..
阅读(217)
评论(0)
推荐(0)
2014年6月9日
UVa 11029 - Leading and Trailing 求n^k的前3位
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1970题意很简单,就是给你一个数 n(int) 和 k(0#include#includeusing nam...
阅读全文
posted @ 2014-06-09 18:51 Tank..
阅读(138)
评论(0)
推荐(0)
2014年6月8日
UVa 10820 - Send a Table 欧拉函数模板
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=115&page=show_problem&problem=1761题意很简单,理解一下就是输出1 到 n内有多少种两两互质的情况,其中 a 和...
阅读全文
posted @ 2014-06-08 14:46 Tank..
阅读(146)
评论(0)
推荐(0)
2014年6月5日
UVa 10791 - Minimum Sum LCM 质因数分解加素数筛优化
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1732题目大意,对于一个数N(1 ~ 2147483647),存在两个或两个以上的数的LCM = N,求这些...
阅读全文
posted @ 2014-06-05 22:46 Tank..
阅读(272)
评论(0)
推荐(0)
UVa 11121 - Base -2 负进制的转化和推广
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2062题目大意就是给你一个-1000,000,000到1000,000,000的数转化成-2进制。看到-2就...
阅读全文
posted @ 2014-06-05 16:40 Tank..
阅读(203)
评论(0)
推荐(0)
2014年6月4日
UVa 106 - Fermat vs. Pythagoras 素勾股数
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=42&mosmsg=Submission+received+with+ID+1371482...
阅读全文
posted @ 2014-06-04 20:20 Tank..
阅读(290)
评论(0)
推荐(0)
下一页
公告