09 2016 档案
摘要:A. Candy Bags time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Gerald has n younger brothe
阅读全文
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It is so boring in the summer holiday, i
阅读全文
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Igor has fallen in love with Tanya. Now
阅读全文
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A permutation of length n is an integer
阅读全文
摘要:time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard
阅读全文
摘要:Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 801 Accepted Submission(s): 470 Problem Descripti
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1134 Accepted Submission(s): 723 Problem Descript
阅读全文
摘要:Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 663 Accepted Submission(s): 480 Problem Descripti
阅读全文
摘要:类属性算法unique的作用是从输入序列中“删除”所有相邻的重复元素。 该算法删除相邻的重复元素,然后重新排列输入范围内的元素,并且返回一个迭代器(容器的长度没变,只是元素顺序改变了),表示无重复的值范围得结束。
阅读全文
摘要:time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard
阅读全文
摘要:time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard
阅读全文
摘要:strstr(str1,str2) 函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回str2在str1中首次出现的地址;否则,返回NULL。 头文件: <cstring> 源码:
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2390 Accepted Submission(s): 746 Problem Descript
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1100 Accepted Submission(s): 674 Problem Descri
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1175 Accepted Submission(s): 643 Problem Descri
阅读全文
摘要:Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 2865 Accepted Submission(s): 719 Problem Descri
阅读全文
摘要:基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 一个矩形的面积为S,已知该矩形的边长都是整数,求所有满足条件的矩形中,周长的最小值。例如:S = 24,那么有{1 24} {2 12} {3 8} {4 6}这4种矩形,其中{4 6}的周长最小,为20。 一个矩形的
阅读全文
摘要:基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 有一个简单但是很有趣的游戏。在这个游戏中有一个硬币还有一张桌子,这张桌子上有很多平行线(如下图所示)。两条相邻平行线之间的距离是1,硬币的半径是R,然后我们来抛硬币到桌子上,抛下之后硬币有时候会和一些直线相交(相切的情
阅读全文
摘要:基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 给出一个数N,求1至N中,有多少个数不是2 3 5 7的倍数。 例如N = 10,只有1不是2 3 5 7的倍数。 Input 输入1个数N(1 <= N <= 10^18)。 Output 输出不是2 3 5 7的倍
阅读全文
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vanya has a scales for weighing loads and
阅读全文
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per test 1 second time limit p
阅读全文
摘要:time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard
阅读全文