随笔分类 -  UVA

摘要:1 /* 2 UVA11752 The Super Powers 3 https://vjudge.net/contest/153365#problem/Y 4 数论 5 注意a^n=b要用除法求,并且求得的n比实际大1 6 */ 7 #include 8 #include 9 #include 10 #include 11 #include 12 #in... 阅读全文
posted @ 2017-03-29 20:28 BBBob 阅读(327) 评论(0) 推荐(0)
摘要:1 /* 2 UVA11827 Maximum GCD 3 https://vjudge.net/contest/153365#problem/V 4 数论 gcd 5 水题,然而读入比较坑 6 * 7 */ 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14... 阅读全文
posted @ 2017-03-29 18:58 BBBob 阅读(301) 评论(0) 推荐(0)
摘要:1 /* 2 UVA10200 Prime Time 3 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1141 4 素数 概率论 暴力 5 6 输出的时候加1e-5到1e-14都能过,不加就wa,不是很懂 7 * 8 ... 阅读全文
posted @ 2017-03-17 17:39 BBBob 阅读(194) 评论(0) 推荐(0)
摘要:题目地址 并查集 阅读全文
posted @ 2016-10-07 01:42 BBBob 阅读(209) 评论(0) 推荐(0)