摘要: 第一次发现指针这么好用#include<cstdio>#include<cstring>#include<algorithm>#include<ctime>using namespace std;#define maxn 100007#define rep(i,x,y) for(int i=x;i< 阅读全文
posted @ 2017-04-17 16:25 OcahIBye 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> int main() { int a[10000]; scanf("%d",a);//这里相当于大小a[0] for(int i=1;i<=a[0];i++) scanf("%d",a+i);//按顺序进行读入 for(int i 阅读全文
posted @ 2017-04-17 14:54 OcahIBye 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 粗略的试了一下,大概是没有问题的#include<cstdio>#include<cstring>#include<time.h>#include<stdlib.h>#define random(x) (rand()%x)#define maxn 100007using namespace std; 阅读全文
posted @ 2017-04-17 00:34 OcahIBye 阅读(181) 评论(0) 推荐(0) 编辑