摘要: 你的一系列得分 先降序排列 再按0.95^(i-1)*ai 这个公式计算你的每一个得分 最后求和Sample Input12530 478Sample Output984.1000000000 1 # include 2 # include 3 # include 4 # include 5... 阅读全文
posted @ 2015-06-27 10:51 __Meng 阅读(183) 评论(0) 推荐(0)
摘要: 题目大意:给出一列取样的几个山的高度点,求山峰有几个?Sample Input291 3 2 4 6 3 2 3 151 2 3 4 5Sample Output30 1 # include 2 # include 3 # include 4 # include 5 # include 6... 阅读全文
posted @ 2015-06-27 10:50 __Meng 阅读(186) 评论(0) 推荐(0)
摘要: n堆石子,每次可以选一堆取走至少一个,之后你可以不操作或者把该堆石子分成两堆,每堆至少一个,和还是原来(取完石子后)的石子个数。Sample Input1121 131 2 3 Sample OutputWinLoseLose 1 # include 2 # include 3 # includ... 阅读全文
posted @ 2015-06-27 10:33 __Meng 阅读(157) 评论(0) 推荐(0)
摘要: 题意:出现Apple、iPod、iPhone、iPad时输出MAI MAI MAI!,出现Sony,输出SONY DAFA IS GOOD!Sample InputApple bananaiPad lemon ApplepiSony233Tim cook is doubi from AppleiPh... 阅读全文
posted @ 2015-06-27 10:32 __Meng 阅读(161) 评论(0) 推荐(0)