码迷,mamicode.com
首页 >  
搜索关键字:内存    ( 80321个结果
1095. Cars on Campus (30)
(模拟题)时间限制220 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 6 campuses and a lot of gates. From each gate we can collect th...
分类:其他好文   时间:2015-12-06 13:07:08    阅读次数:213
1099. Build A Binary Search Tree (30)
freopen("Text.txt", "r", stdin); 输入输出重定向,神器建立二叉树,注意中序遍历和指针的使用 时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is ...
分类:其他好文   时间:2015-12-06 13:04:17    阅读次数:140
1071. Speech Patterns (25)
map的使用时间限制300 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HOU, QimingPeople often have a preference among synonyms of the same word. For example, some ma...
分类:其他好文   时间:2015-12-06 13:03:46    阅读次数:208
1087. All Roads Lead to Rome (30)
时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIndeed there are many different tourist routes from our city to Rome. You are supposed to fi...
分类:其他好文   时间:2015-12-06 13:03:21    阅读次数:235
1074. Reversing Linked List (25)
reverse 方法很好用时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a constant K and a singly linked list L, you are supposed to reverse the ...
分类:其他好文   时间:2015-12-06 13:02:39    阅读次数:218
1086. Tree Traversals Again (25)
时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yuepush 的顺序就是二叉树的前序pop的顺序就是二叉树的中序遍历本质上还是考根据这两个顺序建立二叉树,并且进行后序遍历An inorder binary tree traversal ...
分类:其他好文   时间:2015-12-06 12:59:53    阅读次数:152
1070. Mooncake (25)
(库存量也是double)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueMooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn ...
分类:其他好文   时间:2015-12-06 12:56:34    阅读次数:149
1096. Consecutive Factors (20)
n和i要用long long要不然乘着乘着就是负的了时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAmong all the factors of a positive integer N, there may exist sev...
分类:其他好文   时间:2015-12-06 12:54:37    阅读次数:123
1085. Perfect Sequence (25)
自己想的比较好的一个算法,时间大大节省时间限制300 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengGiven a sequence of positive integers and another positive integer p. The...
分类:其他好文   时间:2015-12-06 12:53:37    阅读次数:121
1053. Path of Equal Weight (30)
dfs函数携带vector形参记录搜索路径时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-empty tree with root R, and with weight Wi assigned to each ...
分类:其他好文   时间:2015-12-06 12:52:01    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!