摘要: input: 61 2 4 8 16 3241 62 53 41 2 output: 6030123 刚开始没有看到要取最大值,就一直在哪里找哪里错了,仔细一看原来有一个最大的需要。 思路:用一个数组存好每两个数之间的^数值,然后比较^的数、以及推出^的两个数,在三个数中找最大值,然后存进数组中。 阅读全文
posted @ 2018-05-16 18:15 flyer_duck 阅读(279) 评论(0) 推荐(0) 编辑
摘要: C. Finite or not? Input The first line contains a single integer nn (1≤n≤10^5 ) — the number of queries. Next nn lines contain queries, one per line. 阅读全文
posted @ 2018-05-16 15:53 flyer_duck 阅读(264) 评论(0) 推荐(0) 编辑