摘要:
a、tic和toc函数 这两个函数一般配合使用,tic表示计时的开始,toc表示计时的结束。 格式如: tic 任意表达式 toc t=toc b、cputime函数 cputime函数返回从调用该函数起所用的总的Cpu时间,单位以秒计算。 格式如: t=cputime; 任意表达式或者程序 e=c 阅读全文
posted @ 2020-08-11 21:23
Tomorrow1126
阅读(902)
评论(0)
推荐(0)
摘要:
一般vector不会超时 其他的可以用数组来模拟一下。 阅读全文
posted @ 2020-08-11 14:47
Tomorrow1126
阅读(212)
评论(0)
推荐(0)
摘要:
__int64与long long 都是在32位平台开始使用bai的du64位整数的数据类型,在存储方式和使用方式上没有区别。两者的区zhi别在于,它们命名的发起人不同,支持的平台不同。 long long这个数据类型,是UNIX平台发起并支持的,而__int64是微软从win95(VC6)开始发起 阅读全文
posted @ 2020-08-11 14:41
Tomorrow1126
阅读(572)
评论(0)
推荐(0)
摘要:
一开始用queue超时了,可能是因为太慢了? queue方法: #include<cstdio> #include<iostream> #include<string> #include<cstring> #include<cmath> #include<stdlib.h> #include<alg 阅读全文
posted @ 2020-08-11 14:40
Tomorrow1126
阅读(119)
评论(0)
推荐(0)
摘要:
#include<cstdio> #include<iostream> #include<string> #include<cstring> #include<cmath> #include<stdlib.h> #include<algorithm> #include<vector> #includ 阅读全文
posted @ 2020-08-11 13:22
Tomorrow1126
阅读(102)
评论(0)
推荐(0)
摘要:
bool visit[100]; memset(visit,false,sizeof(visit)); 阅读全文
posted @ 2020-08-11 13:16
Tomorrow1126
阅读(172)
评论(0)
推荐(0)