皮皮学,免费搜题
登录
搜题
【简答题】
淘汰赛问题 题目: Our school is planning to hold a new exciting computer programming contest. During each round of the contest, the competitors will be paired, and compete head-to-head. The loser will be eliminated, and the winner will advance to next round. It proceeds until there is only one competitor left, who is the champion. In a certain round, if the number of the remaining competitors is not even, one of them will be chosed randomly to advance to next round automatically, and then the others will be paired and fight as usual. The contest committee want to know how many rounds is needed to produce to champion, then they could prepare enough problems for the contest. Input The input consists of several test cases. Each case consists of a single line containing a integer N - the number of the competitors in total. 1 <= N <= 2,147,483,647. An input with 0(zero) signals the end of the input, which should not be processed. Output For each test case, output the number of rounds needed in the contest, on a single line. Sample Input 8 16 15 0 Sample Output 3 4 4
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】已知数组说明REAL A(4,5),数组元素A(2,3)是数组的第 个元素。
A.
7
B.
8
C.
9
D.
10(正确答案)
【简答题】彩色变换具有哪些主要应用?
【单选题】增值税一般纳税人资格实行()制度。
A.
登记
B.
备案
C.
查验
D.
案头审批
【判断题】增值税一般纳税人资格实行登记制,登记事项由增值税纳税人向其主管税务机关办理。()
A.
正确
B.
错误
【单选题】某企业 2018 年 6 月 15 日自行建造的一条生产线投入使用,该生产线建造成本为 370 万元,预计使用年限为 5 年,预计净残值为 10 万元。在采用年数总和法计提折旧的情况下, 2018 年该设备应计提的折旧额为( )万元。
A.
120
B.
70
C.
60
D.
74
【简答题】彩色涂层钢板有哪几种?主要应用于何处?有哪些优点?
【简答题】增值税一般纳税人资格实行( )
【判断题】种子发育成熟期的优良气候利于种子实现高活力。
A.
正确
B.
错误
【简答题】彩色涂层钢板有哪几种?主要应用于何处?有哪些优点?
【单选题】某企业2018年6月15日自行建造的一条生产线投入使用,该生产线建造成本为740万元,预计使用年限为5年,预计净残值为20万元。在采用年数总和法计提折旧的情况下,2018年度该设备应计提的折旧额为( )万元。
A.
240
B.
140
C.
120
D.
148
相关题目: