Description Flip 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
UVa 10006 - Carmichael Numbers An important topic nowadays in computer science is cryptography. Some people even think that cryptography is the only important field in computer science, and that life would not matter at all without
描述 給定一個十進位小數X,判斷X的二進位表示是否是有限確定的。 例如0.5的二進位表示是0.1,0.75的二進位表示是0.11,0.3沒有確定有限的二進位表示。 輸入 第一行包含一個整數 T (1 ≤ T ≤ 10),表示測試資料的組數。 以下T行每行包含一個十進位小數 X (0 < X < 1)。 X一定是以”0.”開頭,小數部分不超過100位。 輸出 對於每組輸入,輸出 X
Description When a radio station is broadcasting over a very large area, repeaters are used to retransmit the signal so that every receiver has a strong signal. However, the channels used by each repeater must be carefully chosen so that
Description You are given a permutation a from 0 to n−1 and a permutation b from 0 to m−1. Define that the domain of function f is the set of integers from 0 to n−1, and the range of it is the set of integers from 0 to m−1. Please
看來最近身體狀況並不是很好啊。。。 最近竟然有一次熬夜,然後心臟開始難受了,我可不想有心臟病啊,勞資還要上分呢。。。 ==b 首先是第一題,手速慢了一些,腦子也慢了些,然後回過神來,woc,1600個人過了。。。雖然是1A,但是時間太長,所以導致我後面的題目都沒來的及看。 A. Case of the Zeros and Ones time limit per test 1 second