摘要:
Mahmoud wants to write a new dictionary that contains n words and relations between them. There are two types of relations: synonymy (i. e. the two wo 阅读全文
摘要:
Problem Description Mr.Quin love fishes so much and Mr.Quin’s city has a nautical system,consisiting of N ports and M shipping lines. The ports are nu 阅读全文
摘要:
The busses in Berland are equipped with a video surveillance system. The system records information about changes in the number of passengers in a bus 阅读全文
摘要:
Description Our Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box 阅读全文
摘要:
You are given two positive integer numbers a and b. Permute (change order) of the digits of a to construct maximal number not exceeding b. No number i 阅读全文
摘要:
Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and G 阅读全文
摘要:
Description Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two a 阅读全文
摘要:
Description Farmer John's N cows (1 ≤ N ≤ 100,000) share many similarities. In fact, FJ has been able to narrow down the list of features shared by hi 阅读全文
摘要:
Description You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your progra 阅读全文
摘要:
Problem Description There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include ma 阅读全文
摘要:
a is an array of n positive integers, all of which are not greater than n. You have to process q queries to this array. Each query is represented by t 阅读全文
摘要:
题目描述 Kanade selected n courses in the university. The academic credit of the i-th course is s[i] and the score of the i-th course is c[i]. At the univ 阅读全文
摘要:
Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the leve 阅读全文
摘要:
Description For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a g 阅读全文