- 博客(22)
- 问答 (1)
- 收藏
- 关注
原创 二分
Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to
2016-09-29 20:42:53 340
原创 H - Counterfeit Dollar
DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indistinguisha
2016-09-29 18:28:44 488
原创 快速幂
利用快速幂求法,求幂int main(){int a=100,b=3;//求a^b的值,用快速幂 double c=1,temp=b;while(a){if(a&1==1)c=temp*c ;temp*=temp;a>>=1;}cout}快速幂求模int f(int a,int b,int n){int
2016-09-29 11:51:46 350
原创 K - Semi-prime H-numbers 筛选数
K - Semi-prime H-numbersTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionThis problem is based on an exercise of David Hilbert,
2016-09-29 10:47:08 396
原创 F - 今年暑假不AC
F - 今年暑假不ACTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription“今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实
2016-09-27 00:44:36 241
原创 A - 人见人爱A^B
A - 人见人爱A^BTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription求A^B的最后三位数表示的整数。 说明:A^B的含义是“A的B次方” Input输入数据包含多个测
2016-09-26 23:29:36 472
原创 L - 破译密码 有关字符串的处理
L - 破译密码Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescription据说最早的密码来自于罗马的凯撒大帝。消息加密的办法是:对消息原文中的每个字母,分别用该字母之后的第5个字母替换(例如:消息原文中的每个字母A都分
2016-09-26 23:20:53 283
原创 求多个数的最小公倍数
C - Least Common MultipleTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe least common multiple (LCM) of a set of positive
2016-09-26 20:27:51 694
原创 H - ZCC loves straight flush
H - ZCC loves straight flushTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionAfter losing all his chips when playing Texas Hold
2016-09-24 16:07:03 352
原创 F - hide handkerchief 利用辗转相除法 来计算两个数的最大公约数
F - hide handkerchiefTime Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe Children’s Day has passed for some days .Has you reme
2016-09-23 10:40:20 392
原创 E - 叠筐
E - 叠筐Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription需要的时候,就把一个个大小差一圈的筐叠上去,使得从上往下看时,边筐花色交错。这个工作现在要让计算机来完成,得看你的了。Inp
2016-09-22 21:42:33 442
原创 J - Max Sum
J - Max SumTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate
2016-09-22 19:47:34 256
原创 G - Raising Bacteria 二进制拆分
G - Raising BacteriaTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are a lover of bacteria. You want to raise some bacte
2016-09-22 09:22:50 477
原创 D - Can you solve this equation? 二分法,精度就求值
D - Can you solve this equation?Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 +
2016-09-21 21:57:57 422
原创 阿牛的EOF牛肉串 递推
I - 阿牛的EOF牛肉串Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共同的
2016-09-21 19:45:37 462
原创 坑爹的 小数加法
C - 大明A+BTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。 这时他已经不是那个只会做100以内加法的那个“小明”了,现
2016-09-20 23:40:55 558
原创 Codeforces 716B Complete the Word
A - Complete the WordTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionZS the Coder loves to read the dictionary. He thinks tha
2016-09-20 18:42:54 591
原创 One Boam技巧 有关十字行列
#include #include using namespace std;char wall[1001][1001];//空地跟墙的排列int rowc[1000]={0},colc[1000]={0};//rowc代表行,存储的是该行的墙的个数,colc代表列,存储的是该列的墙的个数int check(int i,int j)//检查该点是否符合要求{
2016-09-13 21:55:05 305
原创 STL 各种容器 vector deque list set map multiset map multimap stack queue priority_queue
STL 各种容器 vector deque list set map multiset map multimap stack queue priority_queue
2016-09-11 14:17:23 642
空空如也
C++ 运算符重载问题,求大神们帮忙,一直找不到解决办法
2016-09-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人