|
||||||||||
SumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 8344 Accepted Submission(s): 3211 Problem Description Sample Input
Sample Output
Hint 1. For N = 2, S(1) = S(2) = 1. 2. The input file consists of multiple test cases. Source | ||||||||||
|