2013年1月21日

USACO1.4.3--Arithmetic Progressions

摘要: Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-negative integer and b is a positive integer.Write a program that finds all arithmetic progressions of length n in the set S of bisquares. The set of 阅读全文

posted @ 2013-01-21 16:12 仗剑奔走天涯 阅读(245) 评论(0) 推荐(0) 编辑

USACO1.4.2--The Clocks

摘要: The ClocksIOI'94 - Day 2Consider nine clocks arranged in a 3x3 array thusly:|-------| |-------| |-------| | | | | | | | |---O | |---O | | O | | | | | | | |-------| |-------| |-------| A ... 阅读全文

posted @ 2013-01-21 11:59 仗剑奔走天涯 阅读(598) 评论(0) 推荐(0) 编辑

导航