題目信息 代碼 測試結(jié)果
題目信息 Calculate a+b and output the sum in standard format -- that is, the digits must be...
題目信息 A number that will be the same when it is written forwards or backwards is known a...
題目信息 Suppose a bank has K windows open for service. There is a yellow line in front of ...
題目信息 A reversible prime in any number system is a prime whose "reverse" in that number ...
題目信息 It is vitally important to have all the cities connected by highways in a war. If ...
題目信息 To evaluate the performance of our first year CS majored students, we consider the...
題目信息 1010 Radix (25)(25 分)Given a pair of positive integers, for example, 6 and 110, ca...
題目信息 With the 2010 FIFA World Cup running, football fans the world over were becoming i...
題目信息 This time, you are supposed to find A*B where A and B are two polynomials.Input Sp...
題目信息 The highest building in our city has only one elevator. A request list is made up ...
題目信息 Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is de...
題目信息 At the beginning of every day, the first person who signs in the computer room wil...
題目信息 Given a non-negative integer N, your task is to compute the sum of all the digits ...
題目信息 A family hierarchy is usually presented by a pedigree tree. Your job is to count t...
題目信息 1003 Emergency (25)(25 分)As an emergency rescue team leader of a city, you are giv...
題目信息 本題的基本要求非常簡單:給定N個(gè)實(shí)數(shù),計(jì)算它們的平均值。但復(fù)雜的是有些輸入數(shù)據(jù)可能是非法的。一個(gè)“合法”的輸入是[-1000,1000]區(qū)間內(nèi)的實(shí)數(shù),并且最多精確到...
題目信息 在不打擾居民的前提下,統(tǒng)計(jì)住房空置率的一種方法是根據(jù)每戶用電量的連續(xù)變化規(guī)律進(jìn)行判斷。判斷方法如下:在觀察期內(nèi),若存在超過一半的日子用電量低于某給定的閾值e,則該住...
題目信息 萌萌噠表情符號(hào)通常由“手”、“眼”、“口”三個(gè)主要部分組成。簡單起見,我們假設(shè)一個(gè)表情符號(hào)是按下列格式輸出的:[左手]([左眼][口][右眼])[右手]現(xiàn)給出可選用...
題目信息 復(fù)數(shù)可以寫成(A + Bi)的常規(guī)形式,其中A是實(shí)部,B是虛部,i是虛數(shù)單位,滿足i2 = -1;也可以寫成極坐標(biāo)下的指數(shù)形式(R*e(Pi)),其中R是復(fù)數(shù)模,P...