Topcoder SRM 687 div2
通过数:2
250:#include
#include
#include
#include
#include
#include
#include
#include
#include
#include...
分类:
其他好文 时间:
2016-05-12 12:22:34
阅读次数:
175
【覃超的回答(91票)】: 说“转型”可能我还不够资格,因为我从工作开始就直接在做mobile,只是之前在大学里面搞过一些程序竞赛和TopCoder的组件开发在桌面电脑上面,所以从一开始我就是还没完全定型的程序员,基本上什么东西都需要从头学习。第一次真正开发mobile程序还是在CMU读master ...
分类:
其他好文 时间:
2016-05-03 20:09:54
阅读次数:
226
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
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
自己做过的题太少了>_< 找一些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
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
作者:Hawstein出处:http://hawstein.com/posts/dp-novice-to-advanced.html 前言 本文翻译自TopCoder上的一篇文章: Dynamic Programming: From novice to advanced ,并非严格逐字逐句翻译,其中...
分类:
其他好文 时间:
2016-02-25 15:22:11
阅读次数:
297
如何去寻找结题方案topcoder pyalg声明本文是 How to Find a Solution 的翻译转述篇。原文作者为Dumitru。简介topcoder的很多问题都可以通过读题直接解答。原因在于很多题目在某种程度上都具有相似的模式。熟练的coder多数都掌握了从题目中发现相应的模式。这种...
分类:
其他好文 时间:
2016-01-30 13:35:48
阅读次数:
119
DiV1300:给一组士兵再给一组战马都有权值。 安排战马的顺序的方案数,是第一个士兵和其战马的权值乘积最大。 做法:随便暴力就好。 枚举战马和第一个士兵匹配。其他士兵按权值从大到小排序,战马权值按从小到大排序。1. 举个例子:士兵,A,B,C,D,E ...
分类:
其他好文 时间:
2015-11-20 00:00:43
阅读次数:
323
Problem StatementLet's say you have a binary string such as the following:011100011One way to encrypt this string is to add to each digit the sum of i...
分类:
其他好文 时间:
2015-10-24 18:52:40
阅读次数:
269