題目地址:http://acm.fzu.edu.cn/contest/list.php?cid=113A: 計數/******************************************* Description: Given a string of number, and a prime PGet the number of numbers satisfying x*x = a(mod P), (0<=x<p)** Algorithm:高精度/單精確度*********
DescriptionSquares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw on, for all of his paper was filled with squares and
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white side up. Each round you
DescriptionA fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not exhibit exactly the same structure at all scales, but the same "type" of structures must appear on all
題目一:BEEF MCNUGGETS/************************************************Description: Given N objects with weight w[i], ** calculate the MAXIMAL weight which can't be made with these objects** If NONE can't be made, output 0;** If there exists a
DescriptionYou may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of snowflakes, and search for a pair that may be