关闭
当前搜索:

HDU 5245 Joyful(概率求期望)——2015年上海邀请赛

传送门Sakura has a very magical tool to paint walls. One day, kAc asked Sakura to paint a wall that looks like an M×NM \times N matrix. The wall has M×NM \times N squares in all. In the whole problem we d...
阅读(507) 评论(0)

Gym 101503C Twisting the Number(思维+枚举)

题目大意:有一个整数 nn,其中W(n)W(n)表示 nn 的二进制循环的数的集合,比如说: n=11n=11 二进制表示为 10111011,循环一次得到: 0111==>70111 ==> 7 1110==>141110 ==> 14 1101==>131101 ==> 13 所以 w(11)=7,11,13,14w(...
阅读(286) 评论(0)

HDU 4946 Area of Mushroom(凸包)

传送门 Teacher Mai has a kingdom with the infinite area. He has n students guarding the kingdom. The i-th student stands at the position (xi,yi), and his walking speed is vi. If a point can be rea...
阅读(293) 评论(0)

HDU 5446 Unknown Treasure(中国剩余定理+卢卡斯定理)——2015 ACM/ICPC Asia Regional Changchun Online

传送门On the way to the next secret treasure hiding place, the mathematician discovered a cave unknown to the map. The mathematician entered the cave because it is there. Somewhere deep in the cave, she f...
阅读(446) 评论(0)

HDU 5936 Difference(思维+二分)——2016年中国大学生程序设计竞赛(杭州)

传送门Little Ruins is playing a number game, first he chooses two positive integers yy and KK and calculates f(y,K)f(y, K), heref(y,K)=∑z in every digits of yzK(f(233,2)=22+32+32=22)f(y, K) = \sum_{z\text...
阅读(567) 评论(0)

HDU 5954 Do not pour out(二分+积分)

传送门You have got a cylindrical cup. Its bottom diameter is 2 units and its height is 2 units as well.The height of liquid level in the cup is d (0 ≤ d ≤ 2). When you incline the cup to the maximal angle...
阅读(253) 评论(0)

FZU Problem 1919 K-way Merging sort(大数+记忆化搜索)

传送门As we all known, merge sort is an O(nlogn) comparison-based sorting algorithm. The merge sort achieves its good runtime by a divide-and-conquer strategy, namely, that of halving the list being sorte...
阅读(606) 评论(0)
    个人资料
    • 访问:487174次
    • 积分:11121
    • 等级:
    • 排名:第1605名
    • 原创:637篇
    • 转载:5篇
    • 译文:0篇
    • 评论:93条
    博客专栏