摘要: int n,i=1; cin>>n; while(n-i>0){ n-=i; cout<<"n="<<n<<" i="<<i<<endl; i++; } cout<<i-n+1<<"/"<<n<<endl; 输入 : 22 输出:n=21 i=1n=19 i=2n=16 i=3n=12 i=4n=7 i=5n=1 i=67/1////////////////////////// 和 (斜对角) //////// 阅读全文
posted @ 2014-01-09 15:09 y丫t 阅读(200) 评论(0) 推荐(0)
摘要: 恶龙的m个头,直径不同,骑士的能力不同,付的金币不同,杀完龙最少的金币,不能杀完输出“...”输入:m nm行表示直径n行表示骑士能杀的直径范围,并且应支付这么的金币0 0 为结束行#includeusing namespace std;#include#include#includeint ans,get,drag,peo,a[20010],b[20010];int main(){ while(scanf("%d%d",&drag,&peo)==2 && drag && peo){ for(int i=0;i=a[get]) 阅读全文
posted @ 2014-01-07 21:56 y丫t 阅读(234) 评论(0) 推荐(0)
摘要: 。。挂科 。。 。不喜欢 。 该定个复习计划。 应该着笔近代史了,应该写线代论文了 ======前者得开工,后者要速度(今天!)英语: 快速阅读(2)读课本(2) 作业作文 ====== 鉴于目前已退化到初中水平,所以先做快速阅读,短短的,比较简单,做完再说吧 语文,混沌状态,等老师下星期讲吧。 ~囧~ 做高数作业,发现推得很辛苦,果断去积分。 ~积分~积分~积分~目标:草稿纸成堆 --。 高中都没这么勤奋 积分表: 50-60 (目前除于简单状态) 累计用时60 * 3 = 180 min - -。 做的时候很随意,没发现效率这么低,太不熟练了吧, 严重鄙视某女... 阅读全文
posted @ 2013-12-26 07:36 y丫t 阅读(185) 评论(0) 推荐(0)
摘要: 走棋子到棋盘四个角,输出最小步数codeforces输入:m*n (棋盘 从1开始)ij (当前位置) a b (每次可以走 (i+a,j+b) (i+a,j-b) (i-a,j-b) (i-a,j+b) ) 这为一步/************************************************* ** 画个图出来就可以了~~ * **************************************************/ #include#includeint n,m,i,j,a,b; const int oo = 1000000000;using namesp 阅读全文
posted @ 2013-12-19 15:46 y丫t 阅读(218) 评论(0) 推荐(0)
摘要: Summer Readingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAt school Vasya got an impressive list of summer reading books. Unlike other modern schoolchildren, Vasya loves reading, so he read some book each day of the summer.As Vasya was reading 阅读全文
posted @ 2013-12-16 14:55 y丫t 阅读(355) 评论(0) 推荐(0)
摘要: javaC# 等的经典书籍http://jythoner.iteye.com/blog/570792?page=2#comments有篇文章,讲windows VS linux 还有一些linux的事情,软件什么的。。很好。。http://www.cnblogs.com/ebusi/archive/2011/02/12/1952328.html专门放书的,也有很多电子书可以下载http://www.ppurl.com/top一些http://chakra-project.org/news/git github等下要比赛了,学校正式的,有点紧张。回来再补吧。。 阅读全文
posted @ 2013-12-14 17:34 y丫t 阅读(220) 评论(0) 推荐(0)
摘要: 小学老师:将圆平均分成上下两部分像切西瓜一样,切很多很多分展开 将上下两部分放在一起 得到近似平行四边形 所以,S=L*h L:周长数学史上: 1. 2.阿基米德 3.刘徽1. “穷揭法” 2. “平衡法” “穷竭法”3. 割圆术:分割成了192正多边形,近似度3.141024-3.142704PART B 群1.循环小数用分数表示 e.g 0.12=x 12.12=100x 本质就是解方程2.striling公式 http://baike.baidu.com/view/4113061.htm?fromtitle=Stirling%E5%85%AC%E5%... 阅读全文
posted @ 2013-12-14 13:08 y丫t 阅读(258) 评论(0) 推荐(0)
摘要: Cycling the words:Sample Input Copy sample input to clipboardPlease think about it carefullySample OutputPlease think about it carefullythink about it carefully Pleaseabout it carefully Please thinkit carefully Please think aboutcarefully Please think about it代码:#include#includeusing namespace std;i 阅读全文
posted @ 2013-12-14 09:48 y丫t 阅读(329) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 using namespace std; 4 int n,tc; 5 int a[5]={3,1,5,4,9}; 6 int b[5]={0,1,2,3,4}; 7 bool cmp(const int& i,const int& j) 8 { 9 return a[i]<a[j];10 }11 int main()12 { 13 sort(b,b+5,cmp);14 for(int i=0;i<5;++i)15 cout<<b[i]<<" "<<a[i]< 阅读全文
posted @ 2013-12-13 22:51 y丫t 阅读(258) 评论(0) 推荐(0)
摘要: Win+C:调出应用Ch arm 菜单(Metro、传统桌面) * Win+D:所有程序最小化,再次按下恢复(Metro、传统桌面) * Win+E:打开我的电脑(Metro、传统桌面) * Win+F:调出查找面板(Metro、传统桌面) * Win+I:调出设置面板(Metro、传统桌面) * Win+L:一键锁定电脑(Metro、传统桌面) * Win+M:所有程序最小化(Metro、传统桌面) * Win+P:切换外部显示器/电视(Metro、传统桌面) * Win+R:调出“运行”对话框(Metro、传统桌面) * Win+T:将光标定位到传统任务栏图标上(Metr... 阅读全文
posted @ 2013-12-13 18:39 y丫t 阅读(174) 评论(0) 推荐(0)