摘要: Problem Description A sequence Sn is defined as:Where a, b, n, m are positive integers.┌x┐is the ceil of x. For example, ┌3.14┐=4. You are to calculate Sn. You, a top coder, say: So easy!Input There are several test cases, each test case in one line contains four positive integers: a, b, n, m. W... 阅读全文
posted @ 2013-06-22 23:54 forevermemory 阅读(176) 评论(0) 推荐(0) 编辑