摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 6 int arr[1000010]; 7 8 int main() 9 { 10 int T,n,S; 11 scanf
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 char s[1000010]; 6 int vis[300]; 7 int main() 8 { 9 int tt,k,ss,t; //ss 表示低的指针 t代表
阅读全文
摘要:dir 查看目录cd 文件夹 进入文件夹cd.. 退到上一级目录cd\ 到c盘md 创建文件夹rd 删除文件夹 (文件夹必须为空)del 删除文件 (*代表所有)exut 退出dos命令行
阅读全文
摘要:1 #include <cstdio> 2 #include <algorithm> 3 #include <cmath> 4 using namespace std; 5 int dp[10001]; 6 int v[105],w[105]; 7 int main() 8 { 9 int n,W,
阅读全文
摘要:1 #include <cstdio> 2 using namespace std; 3 4 int dp[45]; 5 int main() 6 { 7 int n,m; 8 dp[2]=3; 9 dp[1]=2; 10 for(int i=3;i<41;i++) 11 dp[i]=dp[i-1]
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 int s[1001][1001]; 6 7 int main() 8 { 9 int t,m,n,q,a,x,y; 10 scanf("%d",&t); 11 w
阅读全文
摘要:1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 using namespace std; 5 6 char s[31]; 7 char arr[3]={'R','G','B'}; 8 long long ans[31]
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 #include <iostream> 5 using namespace std; 6 7 const int kind=26; 8 9 struct node {
阅读全文
摘要:scanf函数输入字符串时,回车没有放在字符串中、继续输入字符时不影响 空格和回车标志结束 gets函数输入字符串时,回车字符放在字符串中,当做'\n'; 当第一次输入字符串是,当之前有数据输入时,应该用getchar()函数保存回车、 不是第一次时,没有影响,。 仅仅当回车标志结束
阅读全文
摘要:1 #include <cstdio> 2 #include <iostream> 3 #include <cstring> 4 #include <cmath> 5 using namespace std; 6 struct node { 7 int l,r; 8 }; 9 node s[10];
阅读全文
摘要:导师: 林子祥 周润发 跑龙套时尽心尽力做最好的自己,被导师发现成功演了第一步主角电影《投奔怒海》 有机会不能放过。 林子祥开玩笑说了一句他很有音乐天赋,他每天努力的锻炼,最后自己编曲写歌唱歌,最后林子祥帮了他。 看准目标努力实现。 当被公司雪藏了,刘德华积极和公司上层交流,一年以后可以出来。 学会
阅读全文
摘要:( 6-7 计划) 上午 : 背俩个小时的单词(7-9), 上午 练习算法(做点前天晚上看的算法知识),下午练习算法,晚上学习看视频并且学习算法知识。 (6-7 6-18) 每天学习 英语 做题 ,练习听力 (6-18 开学9-1) 上午 :背俩个小时单词(7-9), 上午下午跟着java web学
阅读全文
摘要:刚开始想都不用想用了暴力 当然超时。 根据题目要求10000k内存 一般64m内存即可以通过 利用hash函数建立,时间通过。但内存超出了。。。代码1 1 2 3 #include <cstdio> 4 #include <cstring> 5 using namespace std; 6 7 sh
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 int a[1000010],c[1000010]; 6 int N,M; 7 8 int lowbit(int x) 9 { 10 return x&(-x);
阅读全文
摘要:1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 int n,m,s[1000010],x,y; 6 7 int main() 8 { 9 scanf("%d%d",&n,
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 #define LL long long 5 6 using namespace std; 7 8 struct node{ 9 int x,y; 10 }; 11 n
阅读全文
摘要:1 #include <stdio.h> 2 3 int n; 4 char s[15]; 5 char ss[15]={'A','B','C','D','E','F','G','H','I','J'}; 6 7 void dfs(int cur) //cur表示第几个位置 8 { 9 if(cur
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 #include <stack> 5 #include <algorithm> 6 #include <cmath> 7 using namespace std; 8 9 st
阅读全文
摘要:调用函数时,主调的函数所拥有的局部变量等信息需要存储在特定的内存区域,这个区域成为栈内存。 利用new或mollock进行分配的内存区域别称为堆内存。 栈内存在程序启动时被统一分配,此后不能在扩大,由于这一区域有上限,所以函数的递归深度也有上限。虽然与函数中定义的局部变量的数目有关,不过一般情况下c
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cstring> 5 #include <cmath> 6 using namespace std; 7 int w[30],vis[30]; /
阅读全文
摘要:1 #include <cstdio> 2 #include <algorithm> 3 using namespace std; 4 5 int main() 6 { 7 int t,temp,n,ans,j,x,z,sum,cc=0; //sum存放最大数值 x代表下表最小 z代表最大下表 cc
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 6 int d[9][9]; //标记此点是否访问并记录距离 7 int maze[9][9]={ 8 1,1,1,1,1,1,1
阅读全文
摘要:1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 using namespace std; 7 8 int s[11],n,r,vis[
阅读全文
摘要:转自知乎。 原问题为:怎样看待 12 个月内自学完成 4 年麻省理工学院计算机科学的 33 门课程的 Scott H. Young 所谓的超速学习理论和方法(费曼技巧)以及背后「Get More from Life」的理念? 战隼回答: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明
阅读全文
摘要:1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 using namespace std; 7 8 int prime[13]={2,3
阅读全文
摘要:1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <iostream> 5 using namespace std; 6 7 int s[9][9];//数独 8 9 bool ans(int x,i
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <queue> 6 7 using namespace std; 8 struct node{ 9 int
阅读全文
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 5 using namespace std; 6 struct node { 7 int wat[3]; //记录中间过程状态 8 int step;//最小倒水次数。 9 }
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 7 using namespace std; 8 int n,k,c,sum,s[20
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 5 using namespace std; 6 7 int main() 8 { 9 int n,m,t,flag; 10 double a,b; 11 scanf("%d
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 6 using namespace std; 7 8 #define N 10010 9 10 double w[N],v[N]
阅读全文
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 #include<cstdio> 5 using namespace std ; 6 typedef long long LL; 7 LL a[101000]; 8 int
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 int s[11]; 6 bool visit[11]; 7 void ans() 8 { 9 for(int i=1;
阅读全文
摘要:1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #include<algorithm> 5 using namespace std; 6 struct ps 7 { 8 double left;//**左交点**// 9 d
阅读全文