随笔分类 -  【USACO】

1 2 下一页

USACO - 2.2 Runaround Numbers(枚举)
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ScFaavqnaPI&S=runround 阅读全文

posted @ 2016-05-04 22:17 Jstyle 阅读(112) 评论(0) 推荐(0)

USACO - 2.2 Subset Sums(DP)
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ScFaavqnaPI&S=subset 阅读全文

posted @ 2016-05-04 22:16 Jstyle 阅读(131) 评论(0) 推荐(0)

USACO - 2.2 Preface Numbering(打表枚举)
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ScFaavqnaPI&S=preface 阅读全文

posted @ 2016-05-04 22:14 Jstyle 阅读(162) 评论(0) 推荐(0)

USACO 2.1-Healthy Holsteins
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ckp2K41VOuH&S=holstein 阅读全文

posted @ 2016-04-25 17:35 Jstyle 阅读(133) 评论(0) 推荐(0)

USACO 2.1-Sorting a Three-Valued Sequence
摘要:题目链接:http://train.usaco.org/usacoprob2?a=bzdILz0bsTb&S=sort3 阅读全文

posted @ 2016-04-25 16:43 Jstyle 阅读(127) 评论(0) 推荐(0)

USACO 2.1-The Castle
摘要:/* ID: m1590291 TASK: castle LANG: C++ */ #include #include #include using namespace std; /**********************************************************************************************************... 阅读全文

posted @ 2016-04-09 14:11 Jstyle 阅读(123) 评论(0) 推荐(0)

USACO 1.5-Superprime Rib
摘要:/* ID: m1590291 TASK: sprime LANG: C++ */ #include #include using namespace std; /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 23:50 Jstyle 阅读(111) 评论(0) 推荐(0)

USACO 1.5-Prime Palindromes
摘要:/* ID: m1590291 TASK: pprime LANG: C++ */ #include using namespace std; /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 23:49 Jstyle 阅读(119) 评论(0) 推荐(0)

USACO 1.5-Number Triangles
摘要:/* ID: m1590291 TASK: numtri LANG: C++ */ #include #include #include #include using namespace std; /************************************************************************************************... 阅读全文

posted @ 2016-04-06 23:48 Jstyle 阅读(137) 评论(0) 推荐(0)

USACO 1.4-Mother's Milk
摘要:/* ID: m1590291 TASK: milk3 LANG: C++ */ #include #include #include #define MAX 25 int A,B,C; int ans[MAX]; //涂灰的标志数组 int vis[MAX][MAX][MAX]; //dfs的执行数组 /*********************************... 阅读全文

posted @ 2016-04-06 23:47 Jstyle 阅读(125) 评论(0) 推荐(0)

USACO 1.4-Arithmetic Progressions
摘要:/* ID: 1590291 TASK: ariprog LANG: C++ */ #include #include #include #include /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 00:06 Jstyle 阅读(117) 评论(0) 推荐(0)

USACO 1.3-Ski Course Design
摘要:校赛的题啊,后悔没有早早做了!!!校赛啊!!!那么丰厚的奖品呢!!!唉~省赛加油吧!!! /* ID: 15901291 TASK: skidesign LANG: C++ */ #include <iostream> #include <fstream> #include <algorithm> 阅读全文

posted @ 2016-04-05 22:53 Jstyle 阅读(113) 评论(0) 推荐(0)

USACO 1.3-Wormholes
摘要:此题 copy 别人的,题意都木有读的很懂。这样是不好滴,知识习惯性的更新一下 blog,以后减少这样的行为。代码粘一下,看看别人的代码吧。 阅读全文

posted @ 2016-04-05 22:50 Jstyle 阅读(114) 评论(0) 推荐(0)

USACO 1.3-Prime Cryptarithm
摘要:/* ID: m1590291 TASK: crypt1 LANG: C++ */ #include #include #include using namespace std; /**********************************************************************************************************... 阅读全文

posted @ 2016-04-04 23:06 Jstyle 阅读(146) 评论(0) 推荐(0)

USACO 1.3-Mixing Milk
摘要:/* ID: m1590291 TASK: milk LANG: C++ */ /****************************************************************************************************************** 单价升序排序 -> 按单价购买牛奶花费最小 **********... 阅读全文

posted @ 2016-04-04 23:05 Jstyle 阅读(134) 评论(0) 推荐(0)

USACO 1.3-Combination Lock
摘要:/* ID: m1590291 TASK: combo LANG: C++ */ #include #include #include /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-04 23:04 Jstyle 阅读(163) 评论(0) 推荐(0)

USACO 1.3-Barn Repair
摘要:/* ID: m1590291 TASK: barn1 LANG: C++ */ #include #include #include #include using namespace std; int main() { int a[205],b[205],M,S,C; ifstream fin("barn1.in"); ofstream fout("barn1.o... 阅读全文

posted @ 2016-04-04 23:03 Jstyle 阅读(118) 评论(0) 推荐(0)

USACO 1.2-Transformations
摘要:/* ID: m1590291 TASK: transform LANG: C++ */ #include #include #include #define MAX 20 using namespace std; int n; char a[MAX][MAX],b[MAX][MAX]; bool check() //检查是否相等 { bool flag=true; for... 阅读全文

posted @ 2016-04-04 23:02 Jstyle 阅读(135) 评论(0) 推荐(0)

USACO 1.2-Palindromic Squares
摘要:/* ID: m1590291 PROG: palsquare LANG: C++ */ #include #include using namespace std; char NUMBER[20] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', .. 阅读全文

posted @ 2016-04-04 23:02 Jstyle 阅读(134) 评论(0) 推荐(0)

USACO 1.2-Name That Number
摘要:/* ID: m1590291 TASK: namenum LANG: C++ */ /****************************************************************************************************************** 一个字母只对应一个数字,从字典中读入一个单词,把它转化成唯一对应的... 阅读全文

posted @ 2016-04-04 23:01 Jstyle 阅读(137) 评论(0) 推荐(0)

1 2 下一页

导航