08 2018 档案

摘要:1 #include 2 #define fi first 3 #define se second 4 #define pb push_back 5 #define fio ios::sync_with_stdio(false);cin.tie(0); 6 #define pii pair 7 #define vi vector 8 #define vc vector 9 #... 阅读全文
posted @ 2018-08-17 17:17 TheSilverMoon 阅读(743) 评论(0) 推荐(0)
摘要:原文章链接:https://blog.csdn.net/liuweiyuxiang/article/details/51658706 1.windows操作系统下system () 函数详解(主要是在C语言中的应用) 函数名: system 功 能: 发出一个DOS命令 用 法: int syste 阅读全文
posted @ 2018-08-06 09:44 TheSilverMoon 阅读(3616) 评论(0) 推荐(1)
摘要:/*8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 阅读全文
posted @ 2018-08-03 17:06 TheSilverMoon 阅读(279) 评论(0) 推荐(0)
摘要:#include <bits/stdc++.h>#define fi first#define se second#define pb push_back#define fio ios::sync_with_stdio(false);cin.tie(0);#define pii pair<int,i 阅读全文
posted @ 2018-08-03 16:30 TheSilverMoon 阅读(223) 评论(0) 推荐(0)
摘要:以前判断素数都是用O(sqrt(n))的方法来做,当数字很大的时候用时会很高,所以这里用到了另一种方法,线性筛。顾名思义,筛掉一部分数。 普通做法:当找到一个素数之后,任何一个数乘上这个数字都是合数,筛掉所有的合数就行。 阅读全文
posted @ 2018-08-01 16:46 TheSilverMoon 阅读(167) 评论(0) 推荐(0)