上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: Problem Description Given an N*N*N cube A, whose elements are either 0 or 1. A[i, j, k] means the number in the i-th row , j-th column and k-th layer. 阅读全文
posted @ 2017-08-28 21:49 会飞的雅蠛蝶 阅读(380) 评论(0) 推荐(0) 编辑
摘要: math.h 数学函数库,一些数学计算的公式的具体实现是放在math.h里,具体有: 1 三角函数 double sin (double); double cos (double); double tan (double); 2 反三角函数 double asin (double); 结果介于[-P 阅读全文
posted @ 2017-08-28 21:49 会飞的雅蠛蝶 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 走过的路偶尔回头看看也是好的,这一个暑假训练真的说是感觉枯燥,最开始刷题真的会刷草鸡的。。。。。。不过这个枯燥的过程不就被众人称之为努力么。 哈哈哈 刚刚写了一大串没有保存下来,网页未响应全部没了。。这个难受。 再说这个暑假的训练吧,最开始刷的是Euler的题,这个网站上的题确实好,非常锻炼数学思维 阅读全文
posted @ 2017-08-26 12:37 会飞的雅蠛蝶 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Stall Reservations Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7646 Accepted: 2710 Special Judge Description Oh those picky N (1 <= N < 阅读全文
posted @ 2017-08-24 22:04 会飞的雅蠛蝶 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Comparing two numbers written in index form like 211 and 37 is not difficult, as any calculator would confirm that 211 = 2048 < 37 = 2187. However, co 阅读全文
posted @ 2017-08-24 12:26 会飞的雅蠛蝶 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Building Roads Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11861 Accepted: 3376 Description Farmer John had just acquired several new f 阅读全文
posted @ 2017-08-22 22:20 会飞的雅蠛蝶 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1、开线段树的结构体时一定要开到4倍的点的大小; 2、写区间求和时的题目时search()函数的返回值在不再区间里时返回0,而区间求最小值时返999999999,最大值时返回-999999999;(int时)一定要是九个9,不然有些极限数据会卡范围; 3、写修改单个点的值和一个区间的值的函数最好分开 阅读全文
posted @ 2017-08-22 09:36 会飞的雅蠛蝶 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Problem Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by 阅读全文
posted @ 2017-08-20 13:49 会飞的雅蠛蝶 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1. 截取子串 s.substr(pos, n) 截取s中从pos开始(包括0)的n个字符的子串,并返回 s.substr(pos) 截取s中从从pos开始(包括0)到末尾的所有字符的子串,并返回 2. 替换子串 s.replace(pos, n, s1) 用s1替换s中从pos开始(包括0)的n个 阅读全文
posted @ 2017-08-18 18:10 会飞的雅蠛蝶 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 欧拉函数定义:设n 为正整数,则1,2......,n中与n互质的整数个数记作f(n)。 1.1 若n为素数,f(n)=n-1; 1.2 整数n=p*q,p,q为不同素数,则f(n)=f(p)*f(q)=(p-1)*(q-1) 1.3 n=p^a*q^b,f(n)=f(p^a)*f(q^b)=n*( 阅读全文
posted @ 2017-08-17 22:16 会飞的雅蠛蝶 阅读(344) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页