随笔分类 - 随记知识点
摘要:struct P{ int x; bool operator a.x;//从小到大 }}; priority_queue q;
阅读全文
摘要:http://hihocoder.com/problemset/problem/1227/************************************************* Author :Powatr* Created Time :2015/9/21 14:46:4...
阅读全文
摘要:1 : 22 : 43 : 84 : 165 : 326 : 647 : 1288 : 2569 : 51210 : 102411 : 204812 : 409613 : 819214 : 1638415 : 3276816 : 6553617 : 13107218 : 26214419 : 524...
阅读全文
摘要:原文地址 http://blog.sina.com.cn/s/blog_76b0cde40100t32r.html被2整除的数是偶数。被3整除的数必须各个位数上的数加起来为三的倍数,比如136,1+3+6=10不行,147=1+4+7=12,就可以。被5整除个位为0或者5.能被7整除的数的特征一个数...
阅读全文
摘要:#gragma comment(linker, "/STACK:1024000000,1024000000")
阅读全文
摘要:Problem DescriptionOO has got a array A of size n ,defined a function f(l,r) represent the number of i (li) satisfy aimod aj=0,now OO want to know∑i=1...
阅读全文
摘要:操作大全:http://wiki.ubuntu.org.cn/Ubuntu%E6%A1%8C%E9%9D%A2%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97使用终端编译方法:alt + cirl + T 打开终端 输入vim 即可打开vim再打开一个终端 输入g++ -v编...
阅读全文
摘要:法一:调用algorithm的库函数__gcd 两个下划线法二:int GCD(int a,int b){return b == 0 ? a : GCD(b,a%b);}
阅读全文
摘要:#include#include#includeusing namespace std;int main(){ int a[10]; int n; scanf("%d",&n); for(int i = 1; i <= n ; i++) scanf("%d",&...
阅读全文
摘要:转自perlman 原文链接:戳这里命令历史以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。启动vim在命令行窗口中输入以下命令即可vim 直接启动vimvim filename 打开vim并创建名为filename的文件文件命令打开单个文件vim file同时...
阅读全文
摘要:bin神----->传送门<-------unsigned int 0~4294967295 int 2147483648~2147483647 ——10^9unsigned long 0~4294967295long 2147483648~2147483647long long的最大值:92...
阅读全文

浙公网安备 33010602011771号