码迷,mamicode.com
首页 >  
搜索关键字:srm    ( 392个结果
TC SRM 637 DIV1 500 PathGame
给一个2*1000的board,每个格子黑或者白。白格子从左到右连成一条连接第一列和最后一列的path,path上相邻两格有公共边。两人轮流把白格子涂成黑格子,最后一个被迫涂黑格子使path断开的人输。问先手必胜还是必败。 ...
分类:其他好文   时间:2016-08-13 19:36:35    阅读次数:205
linux操作系统-find的详细用法
find的详细用法:find/-namehttpd.conffind/-nameaccess_log2>/dev/nullfind/etc-name‘*srm*‘find/-amin-10#查找在系统中最后10分钟访问的文件find/-atime-2#查找在系统中最后48小时访问的文件find/-mmin-5#查找在系统中最后5分钟里修改过的文件find/-mtime-1#查找在系统中..
分类:系统相关   时间:2016-07-12 15:36:37    阅读次数:200
TOPCODER SRM 686 div2 1000
// TOPCODER SRM 686 div2 1000Problem Statement给出一个至多长 100 的字符串,仅包含 ( 和 ),问其中有多少个不重复的,合法的括号子序列。子序列可以不连续;合法即括号序列的合法;答案模 1,000,000,007。Examples"(())("Ret... ...
分类:其他好文   时间:2016-05-27 21:41:11    阅读次数:241
数学 SRM 690 Div1 WolfCardGame 300
Problem Statement Definition Limits Constraints Examples 题意:从1到100挑出K个数字,挑出的数字可正可负,求一种总和不为N的方案. 分析:如果N为奇数,那么选前K个最小的偶数一定不会组成奇数.类似的,如果N不是3的倍数,那么选择前K个最小的 ...
分类:其他好文   时间:2016-05-18 12:26:57    阅读次数:280
Topcoder SRM 688 div2
Topcoder SRM 688 div2 250:#include #include #include #include #include #include #include #include #include #include <numer...
分类:其他好文   时间:2016-05-12 14:35:45    阅读次数:154
Topcoder SRM 687 div2
Topcoder SRM 687 div2 通过数:2 250:#include #include #include #include #include #include #include #include #include #include...
分类:其他好文   时间:2016-05-12 12:22:34    阅读次数:175
Topcoder SRM 687 (Div 2) 500.Quacking
Ducks have started mysteriously appearing in your room. All ducks make the same sound: "quack". Each duck makes the sound one or more times, one after another. For example, valid sounds for a single duck are "quack", "quackquackquackquack", "quackquack", e...
分类:其他好文   时间:2016-04-15 02:17:44    阅读次数:273
Topcoder SRM 687 (Div 2) 250.Quorum
In one organization they have n different committees. The organization has a very large number of employees. Each employee is a member of each committee. Each committee has a quorum: the smallest number of members that have to be present to have an officia...
分类:其他好文   时间:2016-04-15 02:17:37    阅读次数:215
topcoder练习记
自己做过的题太少了>_< 找一些tc的题来刷一刷吧 ^_^ SRM 600 div1 hard LotsOfLines 有 y = ax+b (0 <= a < A && 0 <= b < B) 这样 A*B 条直线, 问你最终这些直线把平面分成了几部分。 考虑以a为第一关键字b为第二关键字给直线排
分类:其他好文   时间:2016-03-10 14:42:20    阅读次数:138
【TopCoder】SRM 680 DIV 2
1. BearPair之bigDistance1.1 题目概述在 <= 50的字符串中找位置i,j 满足(1) s[i] != s[j];(2) abs(i-j)尽可能大。若不存在返回-1, 否则返回最大值。1.2 基本思路没什么好说的,串长这么短 O(n^2)直接A了。1.3 代码 1 class
分类:其他好文   时间:2016-02-29 00:39:25    阅读次数:278
392条   上一页 1 ... 21 22 23 24 25 ... 40 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!