CF 305C (set容器)

题目链接:http://codeforces.com/problemset/problem/305/C 题目大意:给你一个n表示有n个ai,ai表示2^ai。问你需要再加几个b代表2^b,让他们的总和为2^v-1。(v是任意一个数)。 思路:2^v-1的结果的二进制表示肯定仅由1组成,所以我们...

2018-11-28 21:25:08

阅读数 29

评论数 0

HDU 4595 Shaolin (c++ map)

  Problem Description Shaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a m...

2018-11-13 19:28:09

阅读数 36

评论数 0

codeforce 2A winner(map)

  A. Winner The winner of the card game popular in Berland “Berlogging” is determined according to the following rules. If at the end of the game t...

2018-08-05 18:10:35

阅读数 53

评论数 0

HDU 1004 let the balloon rise(map,STL和非map)

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 146133    Accepted Submission(s): 57994 ...

2018-08-05 16:01:02

阅读数 23

评论数 0

提示
确定要删除当前文章?
取消 删除