码迷,mamicode.com
首页 >  
搜索关键字:strange fuction    ( 492个结果
【POJ2891】Strange Way to Express Integers(拓展CRT)
【POJ2891】Strange Way to Express Integers(拓展CRT) 题面 "Vjudge" 板子题。 题解 拓展$CRT$模板题。 cpp include include using namespace std; define ll long long define MA ...
分类:其他好文   时间:2018-07-16 11:32:09    阅读次数:142
【状态压缩 meet in middle】poj3139Balancing the Scale
数组溢出真是可怕的事情 Description You are given a strange scale (see the figure below), and you are wondering how to balance this scale. After several attempts, ...
分类:其他好文   时间:2018-07-07 20:21:15    阅读次数:191
为什么构造函数内部不能调用虚函数
其实也不是不能调用,调用自然是可以的,只不过构造函数中的虚函数不具有多态性,不能达到我们想要的效果。 我们一般想让它输出 A::Fuction A::Fuction 但其实实际输出为 Base::Fuction A::Fuction 给出的原因是说构造基类的时候,还未初始化派生类的成员变量。而网上很 ...
分类:其他好文   时间:2018-07-07 20:19:06    阅读次数:177
poj2891:Strange Way to Express Integers
题目连接: 分明$excrt$就过了。 为什么还要仔细读题呢? $qwq$ 反正我没读题然后被卡$long \ long +$输出格式错$……$总共$WA$了四次 怕不是要退役…… 上代码: ...
分类:其他好文   时间:2018-07-02 10:53:38    阅读次数:125
CodeForces 547E:Mike and Friends(AC自动机+DFS序+主席树)
What-The-Fatherland is a strange country! All phone numbers there are strings consisting of lowercase English letters. What is double strange that a p ...
分类:其他好文   时间:2018-07-01 14:55:10    阅读次数:209
bzoj Strange Way to Express Integers【excrt】
其实我没看懂题~~不如说根本没看~~……都说是excrt板子那就写个板子吧 注意开long long cpp include include using namespace std; const long long N=100005; long long n,r[N],m[N]; void exgc ...
分类:其他好文   时间:2018-07-01 14:17:10    阅读次数:123
AtCoder - 3939 Strange Nim
Problem Statement Takahashi and Aoki are playing a stone-taking game. Initially, there are N piles of stones, and the i-th pile contains Ai stones and ...
分类:其他好文   时间:2018-06-30 20:53:37    阅读次数:150
664. Strange Printer
1 我刚开始的思路是, 相邻的字符如果相同就去重, 然后循环 0 到 n, 首尾相等的话就不用额外打印; 例如 aaabbbaaa 先去重变为 aba , 循环第一个, a 打印一次, 第二个b 打印一次, 第三个a 发现和第一个相同, 不用打印; 然后提交时发现有些case没有通过测试; 后来总结 ...
分类:其他好文   时间:2018-06-30 17:46:22    阅读次数:192
Python自动补全缩写意义
自动补全的变量的类别p:parameter 参数m:method 方法(类实例方法)调用方式classA aa.method()或者classA().method()c:class 类v:variable 变量f:function 函数(类函数)调用方法classA.fuction() ...
分类:编程语言   时间:2018-06-20 18:34:18    阅读次数:129
map
一、map、filter、reduce map(fuction , iterable) 映射 对可迭代对象中的每一项,使用函数去改变 filter(function, iterable) 过滤 可迭代对象中的每一项,放到函数中去计算,如何为真,则留下,构造成一个迭代器,为假则去除 reduce(fu ...
分类:其他好文   时间:2018-06-11 02:15:21    阅读次数:178
492条   上一页 1 ... 7 8 9 10 11 ... 50 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!