三大类型:结构、枚举和类。基础类型: 1.整数类型:Int8、Uint8、Int16、Uint16、Int32、Uint32、Int64、Uint64、Int、Uint 2.浮点类型:Float、Double 3.布尔类型:Bool 4.字符类型:Character复合类型: 1.元组 2.可选类型...
分类:
编程语言 时间:
2015-08-03 01:02:37
阅读次数:
112
1 #include 2 using namespace std; 3 #include 4 #include 5 #define MAXN 1005 6 #define INF 0x7f7f7f7f 7 typedef __int64 type; 8 struct node//边...
分类:
其他好文 时间:
2015-08-02 23:00:13
阅读次数:
205
直接T了,居然可以这么剪枝题解链接:点我 1 #include 2 #include 3 #include 4 #define ll __int64 5 using namespace std; 6 ll a[23],x[23][5],ans; 7 mapp; 8 void dfs(int d,in...
分类:
其他好文 时间:
2015-07-31 21:41:31
阅读次数:
122
//很考想法啊,把五个区间分成200*200,200*200,200来搞。注意:过的时候要用__int64为来过(输出:%I64d)
AC代码:
#include
#include
#include
using namespace std;
#define N 205
__int64 num[6][N];
__int64 s0[N*N];
__int64 s1[N*N];
__int64 ...
分类:
其他好文 时间:
2015-07-31 06:40:05
阅读次数:
105
题目链接:点击打开链接
题目大意:给出m种颜色的小球,现在要求用n个串成一个环,经过旋转翻转后,能形成多少个不同的环。
参考:点击打开链接
#include
#include
#include
#include
using namespace std ;
#define LL __int64
LL gcd(LL a,LL b) {
return b == 0 ? a ...
分类:
其他好文 时间:
2015-07-28 10:43:29
阅读次数:
148
#include #include #include #include using namespace std;typedef __int64 lld;const int MOD = 998244353;const int N = 20;struct Mat { lld a[N][N]; ...
分类:
其他好文 时间:
2015-07-27 20:55:38
阅读次数:
135
题意:一个长为L的圈种上n颗树,每棵树的坐标为xi,结了ai个苹果,用大小为k的篮子把所有苹果装回来,问最少走多少路
解:被神奇的dp教做人了(其实我比较水,本来以为左边贪心一下,右边贪心一下在最后转一圈就搞定的水题=-=)
#include
#include
#include
#define ll __int64
#define MIN(a,b) ((a)<(b)?(a):(b))
c...
分类:
移动开发 时间:
2015-07-27 19:07:38
阅读次数:
107
题目链接:点击打开链接
链
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std ;
#define LL __int64
#define INF 0x3f3f3f3f
#define PI acos(-1.0)
const in...
分类:
其他好文 时间:
2015-07-27 19:06:52
阅读次数:
95
//给一个长度为大于2小于15的字符串
//在其中间加‘+’或‘=’使得其成为一个等式的方法的个数
//枚举等号位置,暴力搜索加号加的位置
#include
#include
#include
using namespace std ;
const int maxn = 20;
typedef __int64 ll ;
int ans;
int...
分类:
其他好文 时间:
2015-07-27 11:11:57
阅读次数:
120
链接:点我题解可以看这里:点我和这里 1 #include 2 #include 3 #include 4 #define N 50005 5 #define LL __int64 6 7 using namespace std; 8 9 LL st[N],total,h[15],n,flag[.....
分类:
其他好文 时间:
2015-07-26 23:58:12
阅读次数:
144