会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
为美好世界献上珂学
欢迎来到这行将终结、匆忙纷扰、并且完全看不到救赎的世界。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2010年1月3日
URAL 1082 Gaby Ivanushka
摘要: [成绩] IDDateAuthorProblemLanguageJudgement resultTest #Execution timeMemory used288386214:08:523 Jan 2010bake1082C++Accepted0.01...
阅读全文
posted @ 2010-01-03 17:12 为美好世界献上珂学
阅读(104)
评论(0)
推荐(0)
2009年12月30日
USACO 1.2 Palindromic Squares
摘要: [成绩][报告] 这个不解释,弄回文的时候,把整数改成高精度的时候弄反了…… 其实就只要枚举就可以了。这个范围不大。 N从1枚举到300,计算出在B进制下N*N的值(我是先算N*N,再转成B进制,如果用高精度,太麻烦了),然后判断N*N是否为...
阅读全文
posted @ 2009-12-30 17:49 为美好世界献上珂学
阅读(78)
评论(0)
推荐(0)
2009年12月29日
USACO 1.2 Name That Number
摘要: [成绩][报告] 题目没看全,所以没能1次AC…… 这道题目其实就是扫描文件,把所有的可能的东西给输出,就可以拉![程序]#include #include #include #include #include #include using na...
阅读全文
posted @ 2009-12-29 19:54 为美好世界献上珂学
阅读(91)
评论(0)
推荐(0)
USACO 1.2 Transformations
摘要: [成绩][报告] 模拟! 按照他的要求去做,怎会不AC?[程序]#include #include #include #include #include #define N 10using namespace std;ifstream fin (...
阅读全文
posted @ 2009-12-29 15:45 为美好世界献上珂学
阅读(120)
评论(0)
推荐(0)
2009年12月15日
USACO 1.2 Milking Cows
摘要: [报告] 比较简单。开一个线段树,然后…… 自己看程序吧,很容易看懂的。[程序]#include #include #include using namespace std;ifstream fin ("milk2.in");ofstream f...
阅读全文
posted @ 2009-12-15 18:09 为美好世界献上珂学
阅读(124)
评论(0)
推荐(0)
USACO 1.1 Broken Necklace
摘要: [报告] 首先,把环打开——就是str=str+str+str(我的程序在最前面+了个'\0',这是我多年PASCAL与C++混写的习惯),然后从第N+1位到第N+N位,以那位与它前面那个之间的空隙进行枚举。并且向左搜索一次,向右搜索一次。求出要你求的...
阅读全文
posted @ 2009-12-15 15:38 为美好世界献上珂学
阅读(86)
评论(0)
推荐(0)
2009年12月14日
USACO 1.1 Friday the Thirteenth
摘要: [报告] 本来这道题昨天就能AC了,但是由于此程序一交上去,USACO爆了。…… 实际上就是枚举,枚举每个月13日是星期几,再累加下就OK了。 我的计算方法是:第1年先算出来,从第2年开始,星期?=(星期?+上月天数)%7,就可以了。[程序](我删...
阅读全文
posted @ 2009-12-14 15:19 为美好世界献上珂学
阅读(95)
评论(0)
推荐(0)
2009年12月11日
USACO 1.1 Greedy Gift Givers
摘要: [报告] 模拟吧! 这个样例几乎包含了所有可能会发生的错误。 只要A了样例,也就A了这题。 如果N增大,则需要用HASH。[程序]#include #include #include #include #define N 10using ...
阅读全文
posted @ 2009-12-11 10:12 为美好世界献上珂学
阅读(104)
评论(0)
推荐(0)
USACO 1.1 Your Ride Is Here
摘要: [报告] 懂OI的人都能解决这道题目。 一个字——“水”![程序]#include #include #include #include using namespace std;ifstream fin ("ride.in");ofstream ...
阅读全文
posted @ 2009-12-11 09:44 为美好世界献上珂学
阅读(81)
评论(0)
推荐(0)
2009年12月4日
URAL 1086 Cryptography
摘要: [报告] 求素数会么? 很简单,先把前15000个素数筛出来(筛到262144大概有20000+个素数),然后开始读入,读一个直接打一个。[程序]// TASK: 1086 Cryptography#include #include #includ...
阅读全文
posted @ 2009-12-04 14:16 为美好世界献上珂学
阅读(98)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告