Simon and Antisimon play a game. Initially each player receives one fixed positive inte...
Simon and Antisimon play a game. Initially each player receives one fixed positive inte...
Manao works on a sports TV. He's spent much time watching the football games of some co...
The GeoSurvComp geologic survey company is responsible for detecting underground oil de...
Mad scientist Mike entertains himself by arranging rows of dominoes. He doesn't need do...
Shapur was an extremely gifted student. He was great at everything including Combinator...
An elephant decided to visit his friend. It turned out that the elephant's house is loc...
要求(A/B)%9973溜嗜,但由于A很大膨更,我們只給出n(n=A%9973)(我們給定的A必能被B整除,且gcd(B,9973) = 1)鸯隅。Input數(shù)據(jù)的第一行是一個(gè)T,表示有...
國(guó)慶期間,省城HZ剛剛舉行了一場(chǎng)盛大的集體婚禮,為了使婚禮進(jìn)行的豐富一些,司儀臨時(shí)想出了有一個(gè)有意思的節(jié)目,叫做"考新郎",具體的操作是這樣的:首先,給每位新娘打扮得幾乎一模...
Being a nonconformist, Volodya is displeased with the current state of things, particul...
Vasya has n pairs of socks. In the morning of each day Vasya has to put on a pair of so...
世界杯結(jié)束了,意大利人連本帶利的收回了法國(guó)人6年前欠他們的債,捧起了大力神杯,成就了4星意大利.世界杯雖然結(jié)束了,但是這界世界杯給我們還是留下許多值得回憶的東西.比如我們聽到...
ZS the Coder and Chris the Baboon are travelling to Udayland! To get there, they have t...
The Saratov State University Olympiad Programmers Training Center (SSU OPTC) has n stud...
Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatiu...
An n?×?n table a is defined as follows:The first row and the first column contain ones,...
Manao is trying to open a rather challenging lock. The lock has n buttons on it and to ...
Fox Ciel starts to learn programming. The first task is drawing a fox! However, that tu...
One way to create a task is to learn from math. You can generate some random math state...
After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. No...
Vasya works as a DJ in the best Berland nightclub, and he often uses dubstep music in h...