会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那个在追赶星星的男人
The best or nothing
博客园
首页
新随笔
联系
订阅
管理
2015年11月22日
在oj平台上练习的一些总结【转】
摘要: 程序书写过程中的一些小技巧:1. freopen(“1.txt”,”r”,stdin); //程序运行后系统自动输入此文档里面的内容(不需要进行手动输入)freopen(“1.txt”,”w”,stdout); //程序输出的内容保存在此文件里2. memset(a,0,sizeof(a)); ...
阅读全文
posted @ 2015-11-22 10:18 那个追赶星星的男人
阅读(1245)
评论(0)
推荐(0)
2015年11月21日
小蜜蜂--大数问题
摘要: 解题源代码: 1 #include 2 3 unsigned long long RoadWay(int n) { //定义了unsigned long long类型 4 unsigned long long num1=1lu, num2=2lu; 5 unsigned ...
阅读全文
posted @ 2015-11-21 12:19 那个追赶星星的男人
阅读(418)
评论(3)
推荐(0)
2015年11月7日
The largest prime factor(最大质因数)
摘要: 1. 问题:Theprimefactorsof13195are5,7,13and29.Whatisthelargestprimefactorofthenumber600851475143?2. 解法(by java in Eclipse) 1 package com.lun.alrithmeti...
阅读全文
posted @ 2015-11-07 12:26 那个追赶星星的男人
阅读(500)
评论(0)
推荐(0)
公告