摘要:
DescriptionLet us begin with a positive integer N and find the smallest positive integer which doesn't divide N. If we repeat the proc... 阅读全文
摘要:
DescriptionThe distance between two integers is defined as the sum of the absolute result of subtracting their digits. For example, th... 阅读全文
摘要:
DescriptionMirko has a chessboard with N rows and just three columns. Slavica has written an integer on each field. Mirko has K domino... 阅读全文
摘要:
DescriptionMirko is hungry as a bear, scratch that, programmer and has stumbled upon a local restaurant. The restaurant offers N meals... 阅读全文
摘要:
In this problem you have to simulate the workflow of one-thread server. There are n queries to process, the i-th will be received at m... 阅读全文
摘要:
Problem DescriptionFor a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 ... 阅读全文
摘要:
Problem Description#define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is... 阅读全文
摘要:
Problem DescriptionIn order to remember history, King plans to play losephus problem in the parade gap.He calls n(1≤n≤5000) soldiers, ... 阅读全文