摘要:
Description Given a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A is said t 阅读全文
摘要:
Description Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, 阅读全文
摘要:
Description Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows 阅读全文
摘要:
Description Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place 阅读全文
摘要:
物品分堆 物品分堆 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 有n个物品,物品i的重量为Wi,现在想要把这个n个物品分类两堆,求最小的重量差(物品不 阅读全文
摘要:
Description Given A,B,C, You should quickly calculate the result of A^B mod C. (1<=A,B,C<2^63). Given A,B,C, You should quickly calculate the result o 阅读全文
摘要:
Description Determine the shortest path between the specified vertices in the graph given in the input data.Hint: You can use Dijkstra's algorithm.Hin 阅读全文
摘要:
Description Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime i 阅读全文
摘要:
Description Professor Ibrahim has prepared the final homework for his algorithm’s class. He asked his students to implement the Posterization Image Fi 阅读全文