08 2014 档案

摘要: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 颜威 阅读(278) 评论(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 颜威 阅读(121) 评论(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 颜威 阅读(136) 评论(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 颜威 阅读(115) 评论(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 颜威 阅读(136) 评论(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 颜威 阅读(115) 评论(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 颜威 阅读(123) 评论(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 颜威 阅读(165) 评论(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 颜威 阅读(100) 评论(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 颜威 阅读(154) 评论(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 颜威 阅读(116) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Maths - Misc// 10161 - Ant on a Chessboard#include #include u... 阅读全文
posted @ 2014-08-12 15:50 颜威 阅读(113) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Maths - Misc// 113 - Power of Cryptography#include #include u... 阅读全文
posted @ 2014-08-12 15:11 颜威 阅读(109) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 644 - Immediate Decodability#include #include #inclu... 阅读全文
posted @ 2014-08-11 16:36 颜威 阅读(103) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 10878 - Decode the tape#include #include using names... 阅读全文
posted @ 2014-08-11 15:40 颜威 阅读(91) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Sorting/Searching// 156 - Ananagrams#include #include #includ... 阅读全文
posted @ 2014-08-11 11:10 颜威 阅读(208) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::String// 401 - Palindromes#include #include using namespace s... 阅读全文
posted @ 2014-08-10 16:03 颜威 阅读(123) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Sorting/Searching// 10420 - List of Conquests#include #includ... 阅读全文
posted @ 2014-08-09 17:44 颜威 阅读(146) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Sorting/Searching// 299 - Train Swapping#include using namesp... 阅读全文
posted @ 2014-08-09 17:39 颜威 阅读(74) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Sorting/Searching// 10474 - Where is the Marble?#include #inc... 阅读全文
posted @ 2014-08-09 17:39 颜威 阅读(110) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Big Number// 748 - Exponentiation// bug:底数R必须带小数点,否则运算结果不对#in... 阅读全文
posted @ 2014-08-09 17:35 颜威 阅读(115) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Big Number// 10106 - Product#include #include //#include #def... 阅读全文
posted @ 2014-08-09 17:32 颜威 阅读(103) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 1. Elementary Problem Solving::Big Number// 424 - Integer Inquiry#include #include using nam... 阅读全文
posted @ 2014-08-09 17:26 颜威 阅读(123) 评论(0) 推荐(0)
摘要:AOAPC I: Beginning Algorithm Contests (Rujia Liu)::Volume 0. Getting Started// 10055 - Hashmat the Brave Warrior#include using namespace std;int main(... 阅读全文
posted @ 2014-08-07 16:12 颜威 阅读(111) 评论(0) 推荐(0)
摘要:// 程序5_1_1 WERTYU#include const char* s = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; //常量数组int main(void){ int i, c; while((c=getchar()... 阅读全文
posted @ 2014-08-04 20:09 颜威 阅读(155) 评论(0) 推荐(0)
摘要:// 程序4-1 组合数#include int f(int n){ int i, m = 1; for(i = 1; i #include #include int is_prime(int x) // 惯用命名{ int i, m; assert(x >= 0); //当... 阅读全文
posted @ 2014-08-04 08:40 颜威 阅读(219) 评论(0) 推荐(0)
摘要:// 程序3-1 逆序输出#include #define MAXN 100+10 // 保险int a[MAXN]; // 比较大的数组应尽量声明在main函数外int main(void){ int i, x, n=0; while(scanf("%d", &x)==1) ... 阅读全文
posted @ 2014-08-03 19:50 颜威 阅读(142) 评论(0) 推荐(0)
摘要:// 程序2-2 7744问题(1)#include #include int main(void){ int a, b, n; double m; for(a = 1; a int main(void){ int x, n, hi, lo; for(x = 1; ; ... 阅读全文
posted @ 2014-08-03 19:46 颜威 阅读(132) 评论(0) 推荐(0)
摘要:// 程序1-7 三位数反转 (2)#include int main(void){ int n, m; scanf("%d", &n); m = (n%10)*100 + (n/10%10)*10 + (n/100); printf("%03d\n", m); // 处理个位数为零的特殊情况 re... 阅读全文
posted @ 2014-08-03 19:39 颜威 阅读(149) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示