随笔分类 -  UVa

摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 2. Data Structures::Binary Trees解题报告:1、题目太长了,差点失去耐心。:)2、其实无非就是顺着树走,找到叶子的值,不要被那个函数迷惑。3、往左走为0,... 阅读全文
posted @ 2014-10-23 13:24 颜威 阅读(106) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 409 - Excuses, Excuses!#include #include #include in... 阅读全文
posted @ 2014-09-28 15:42 颜威 阅读(196) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 5. Dynamic Programming// 674 - Coin Change#include #include #define MAXN 7500using namespace... 阅读全文
posted @ 2014-09-27 12:28 颜威 阅读(127) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 4. Algorithm Design// 10763 - Foreign Exchange#include #define MAXN 500000using namespace st... 阅读全文
posted @ 2014-09-25 17:09 颜威 阅读(182) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 4. Algorithm Design// 10714 - Ants#include #include using namespace std;int a[1000001];int m... 阅读全文
posted @ 2014-09-25 00:05 颜威 阅读(150) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 4. Algorithm Design// 10341 - Solve It#include #include #define EPS 1e-7 // 精度要求苛刻...in... 阅读全文
posted @ 2014-09-24 22:54 颜威 阅读(131) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 2. Data Structures::Lists// 133 - The Dole Queue#include #include typedef struct node{ int n... 阅读全文
posted @ 2014-09-18 10:19 颜威 阅读(164) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 2. Data Structures::Lists// 11234 - Expressions#include #include #include #include #include ... 阅读全文
posted @ 2014-09-17 11:42 颜威 阅读(115) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 4. Algorithm Design// 10487 - Closest Sums#include #include using namespace std;int main(voi... 阅读全文
posted @ 2014-09-14 11:42 颜威 阅读(156) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 10815 - Andy's First Dictionary#include #include #in... 阅读全文
posted @ 2014-08-23 17:19 颜威 阅读(281) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 537 - Artificial Intelligence?#include #include #inc... 阅读全文
posted @ 2014-08-22 17:11 颜威 阅读(124) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 10115 - Automatic Editing#include #include #include ... 阅读全文
posted @ 2014-08-22 16:05 颜威 阅读(141) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 10010 - Where's Waldorf?#include #include #include /... 阅读全文
posted @ 2014-08-22 08:49 颜威 阅读(120) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 10361 - Automatic Poetry#include #include #include #... 阅读全文
posted @ 2014-08-21 10:47 颜威 阅读(138) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 3. Brute Force::Elementary Skills// 11205 - The broken pedometer#include #include using name... 阅读全文
posted @ 2014-08-17 15:15 颜威 阅读(120) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 3. Brute Force::Elementary Skills// 729 - The Hamming Distance Problem#include #include #inc... 阅读全文
posted @ 2014-08-16 16:18 颜威 阅读(128) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 3. Brute Force::Elementary Skills// 10098 - Generating Fast#include #include #include using ... 阅读全文
posted @ 2014-08-16 11:51 颜威 阅读(168) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 3. Brute Force::Elementary Skills// 146 - ID Codes#include #include #include using namespace... 阅读全文
posted @ 2014-08-16 10:33 颜威 阅读(107) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 2. Data Structures::Lists// 10050 - Hartals#include #include using namespace std;int day[365... 阅读全文
posted @ 2014-08-16 09:07 颜威 阅读(158) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 2. Data Structures::Lists// 673 - Parentheses Balance#include #include #include #include usi... 阅读全文
posted @ 2014-08-15 10:20 颜威 阅读(122) 评论(0) 推荐(0)