A1042
A1046——Shortest Distance
1私恬、any pair of exits. 任何一對出口院究。
2康愤、an integer 整數(shù)
3半开、where D?i is the distance between the i-th and the (i+1)-st exits, and D?N?? is between the N-th and the 1st exits.
其中Di是第i和(i+1)-st出口之間的距離,和DN在第n和第一出口之間
4枢冤、The second line gives a positive integer M (≤10的4次方), with M lines follow, each contains a pair of exit numbers,
第二行給出正整數(shù)M(≤10的四次方)鸠姨,在M行之后,每一行包含一對出口號碼淹真,
5讶迁、contains 包含
A1002 A+B for Polynomials (25分).cpp
1、Polynomials 多項(xiàng)式
2趟咆、where K is the number of nonzero terms in the polynomial 其中K是多項(xiàng)式中非零項(xiàng)的個數(shù)添瓷,
3、 the exponents and coefficients 指數(shù)和系數(shù)
4值纱、 with the same format as the input. 與輸入格式相同
5、Please be accurate to 1 decimal place. 請精確到小數(shù)點(diǎn)后1位坯汤。
A1011 World Cup Betting (20分)
namely W for win, T for tie, and L for lose. 即W代表勝利虐唠,T代表平局,L代表失敗惰聂。
There was an odd assigned to each result. 每個結(jié)果都有一個奇數(shù)疆偿。
It is guaranteed that the records are consistent. That is, the sign in time must be earlier than the sign out time for each person, and there are no two persons sign in or out at the same moment.
保證記錄一致。也就是說搓幌,每個人的簽到時間必須早于簽退時間杆故,并且沒有兩個人同時簽到或簽退。
A1031 Hello World for U (20分)
starting top-down from the left vertical line with n1 characters, 從帶有n1個字符的左垂直線自上而下開始
vertical 垂直的
then left to right along the bottom line with n2 characters 然后從左到右沿著帶有n2個字符的底線
and finally bottom-up along the vertical line with n?3 ?? characters. 最后沿n 3個字符的垂直線自下而上溉愁。
where all the English characters must be upper-cased. If a single color is only 1-digit long, you must print a 0 to its left.
所有英文字符必須大寫处铛。如果單色只有1位數(shù)字長,則必須在其左側(cè)打印0拐揭。
radix 13 (0-9 and A-C) 基數(shù)13(0-9和A-C)