
Algorithm
_Rush_Go_On_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVa OJ 100
水一道入门题,纯属消遣,代码略丑,没怎么优化 #include typedef unsigned int unit; using std::cin; using std::cout; using std::endl; unit Cycle(unit x) { unit count = 1; while (x != 1) { if (x & 1) x += x原创 2014-09-28 00:07:14 · 572 阅读 · 0 评论 -
UVa OJ 102
思路很简单,结果一共就只有liuzho原创 2014-09-28 11:11:28 · 536 阅读 · 0 评论 -
UVa OJ 10071,10055,113
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1012 Problem B Back to High School Physics Input: standard input Output: standard原创 2014-09-28 12:56:29 · 488 阅读 · 0 评论 -
UVa OJ 105 - The Skyline Problem
这题有点难度了,好好写一下原创 2014-09-28 20:47:58 · 644 阅读 · 0 评论 -
UVa OJ 160
#include #include #include using namespace std; const int len=1e3; //1.我们可以写一个子函数,把一个数分解质因数 //2.求阶乘的质因数,只要把其中每一个数的质因数先提取出来,不断添加至一个vector //3.求vector中每个数出现的次数 vector factor(int Num) { vect原创 2014-09-29 14:41:01 · 596 阅读 · 0 评论 -
OVa OJ 488 - Triangle Wave
#include using namespace std; void tri_wave(int amplitude) { for (int i = 1; i { for (int j = 1; j { cout } cout } for (int i = amplitude - 1; i > 0; --i) { for (int j = 1; j {原创 2014-10-01 09:42:55 · 565 阅读 · 0 评论 -
UVa OJ 104 - Arbitrage
晚上写原创 2014-10-01 09:57:45 · 663 阅读 · 0 评论