天梯选拔赛补题
如果支付失败,那么最大值=之前支付成功的+这次想支付但失败的+25-1。
如果支付成功,那么最小值=之前所有支付成功的。
AC代码:
1 |
|
比赛时读错题了, the number that have a prime number of ones in their binary representation. 翻译成了一种二进制表示时是质数的数,应该是二进制表示中一的数量是质数的数…..
AC代码:
1 | int get(int x) |
ACPC Headquarters : AASTMT (Stairway to Heaven)
map set 搞一搞,加各种标记优化~
1 | struct node |