标签:
本文是 How to Find a Solution 的翻译转述篇。原文作者为Dumitru。
topcoder的很多问题都可以通过读题直接解答。原因在于很多题目在某种程度上都具有相似的模式。熟练的coder多数都掌握了从题目中发现相应的模式。这种模式可以是某种算法数据结构,也可以是某种抽象建模。
本文的目的就是让大家都能具有这种观察出题目内在模式的能力。
多数的SRM 250points的题目都是属于此类型。在这种类型题中,答题者主要需要把 题目的步骤描述转化为代码 。此种类型题目不考察算法,考察的为解题的速度和正确性。
BusinessTasks – SRM 236 Div 1:
N tasks are written down in the form of a circular list, so the first task is adjacent to the last one. A number n is also given. Starting with the first task, move clockwise (from element 1 in the list to element 2 in the list and so on), counting from 1 to n. When your count reaches n, remove that task from the list and start counting from the next available task. Repeat this procedure until one task remains. Return it.
test
标签:
原文地址:http://www.cnblogs.com/AlexWei/p/5170644.html