14. using std::max; 15. using std::swap; int main(int argc, char const *argv[]) 18. { 1 #ifndef ONLINE_JUDGE 20. freopen("rect.in", "r", stdin
|
|
- 说昧 苏
- 5 years ago
- Views:
Transcription
1 Notes HTML Display PDF English New words and expressions OI SSR's Ascii Art NOIP2016 Simulation Nr. 49 Problem A NOIP2016 Simulation Nr. 49 Problem B (Fibonacci Sequence, Minus Modulo, Fast Matrix Exponentiation) NOIP2016 Simulation Nr. 49 Problem C NOIP2016 Simulation Nr. 50 Problem A NOIP2016 Simulation Nr. 50 Problem B Cmd Markdown Slash Matrix M3. Inline-code Table Notes HTML Display PDF This is very useful in blogs. 1. <iframe src = "...pdf" width=768 height=1024></iframe> English New words and expressions Literary Meaning Literary adj. about writing Taking into account that... Mentioned that... OI SSR's Ascii Art 1. /\_/\ /\_/\ /\_/\ /\_/\ * *.\/. 3. w) w) w) w) W--W-----W--W----W--W-----W--W NOIP2016 Simulation Nr. 49 Problem A 小 W 摆石子 问题描述 小 W 得到了一堆石子, 要放在 N 条水平线与 M 条竖直线构成的网格的交点上 因为小 M 最喜欢矩形了, 小 W 希望知道用 K 个石子最多能找到多少四边平行于坐标轴的长方形, 它的四个角上都恰好放着一枚石子 输入格式 第一行三个整数 N,M,K 输出格式 一个非负整数, 即最多的满足条件的长方形数量 输入输出样例 rectangle.in rectangle.out 5 rectangle.in rectangle.out 1398 数据规模 对于 50% 的数据 :N<=30 对于 100% 的数据 :N<=30000, 保证任意两点不重合,K<=N*M 2. Problem: User: yanhuihang 6. Time:1 ms 7. Memory:1084 kb 11. #include <algorithm> 12. #include <cstdio> 13.
2 14. using std::max; 15. using std::swap; int main(int argc, char const *argv[]) 18. { 1 #ifndef ONLINE_JUDGE 20. freopen("rect.in", "r", stdin); 21. #endif long long int n, m, k; 24. scanf("%lld%lld%lld", &n, &m, &k); if (k == n*m) { 27. printf("%lld", n*(n-1)*m*(m-1)/4); } 28. else { 2 if (n > m) swap(n, m); long long s = 0; for (long long x = 1; x <= n; ++x) { 34. long long y = k / x; 35. long long r = k - x*y; 36. if (y > m (y == m && r!= 0)) continue; 37. s = max(s, x*(x-1)*y*(y-1)/4+r*y*(r-1)/2); } printf("%lld", s); } return 0; 42. } 考虑对于一个布满点的网格 (x 行,Y 列 ), 所有的矩形总数为组合数 C(2,x)*C(2,y) 但 k 不一定刚好就能布满整个网格, 所以我们先找到在网格中最大能形成的长方形矩阵的长 y 和宽 x, 剩余石子为 r, 则有 k = x * y + r, 最大能形成的长方形矩阵最多有 C(x,2)*C(y,2) 个矩形, 剩余石子 r 以一排或一列的形式, 靠在大矩形短的一边 ( 要注意是否到达边界 ), 则多增加的矩形数为 C(2,r)*y (y 为长边的点数 ) 枚举 x 与 y, 计算出 C(x,2)*C(y,2)+ C(r,2)*y 的最大值 1. #include <iostream> 2. #include <cmath> 3. #include <algorithm> 4. using namespace std; long long Func(long long n) 7. { 8. return n*(n-1)/2; } int main() 11. { 12. int T; 13. cin >> T; 14. for(int cnt = 1; cnt <= T; ++cnt) 15. { 16. int n, m, k; 17. cin >> n >> m >> k; 18. if(n > m) swap(n,m); //n 为短边,m 为长边 ( 个人习惯 ~0~) 1 long long ans = 0; 20. for(int x = 2; x <= n; ++x) // 对 x 进行枚举 ( 短边 ) 21. { 22. int y = k / x; // 可能的最大长边 y 23. int r = k % x; // 剩余的石子数 r 24. if( y > m ( y == m && r) ) // 超边界 25. continue; 26. ans = max(ans, Func(x)*Func(y) + y*func(r)); 27. } 28. cout << "Case #" << cnt << ": " << ans << endl; 2 } 30. return 0; 31. } NOIP2016 Simulation Nr. 49 Problem B (Fibonacci Sequence, Minus Modulo, Fast Matrix Exponentiation) Fibonacci Sequence is defined by: Given, calculate We have answer is required to be printed modulo Let be, we have so we just need to calculate. Obviously, Use the matrix exponentiation. I don't know how to do or how it works:
3 And the code (also I really don't know) : 1. #include<iostream> 2. #include<cstdlib> 3. #include<cstdio> 4. #include<cmath> 5. #include<cstring> 6. #include<algorithm> 7. #include<queue> 8. #define mod using namespace std; struct hh 11. { 12. int a[5][5],n,m; 13. }; 14. hh a,b,c; int t,l,r,suma,sumb,ans; 17. int f[50005]; hh mul(hh,hh); 20. hh ff(hh,int); 21. int main() 22. { 23. int i,j; 24. freopen("fibonacci.in","r",stdin); 25. freopen("fibonacci.out","w",stdout); 26. scanf("%d",&t); 27. a.m=a.n=b.n=3; 28. b.m=1; 2 for(j=1;j<=3;j++) a.a[1][j]=1; 30. a.a[2][2]=a.a[2][3]=1; 31. a.a[3][2]=1; 32. b.a[1][1]=2; 33. b.a[2][1]=b.a[3][1]=1; 34. while(t--) 35. { 36. scanf("%d%d",&l,&r); 37. if(l<=3) suma=l-1; 38. else{c=mul(ff(a,l-3),b);suma=c.a[1][1];} 3 if(r<=2) sumb=r; 40. else{c=mul(ff(a,r-2),b);sumb=c.a[1][1];} 41. ans=(sumb-suma+mod)%mod; 42. printf("%d\n",ans); 43. } 44. fclose(stdin); 45. fclose(stdout); 46. return 0; 47. } hh mul(hh a,hh b) 50. { 51. int i,j,k; 52. hh c; 53. c.n=a.n; 54. c.m=b.m; 55. memset(c.a,0,sizeof(c.a)); 56. for(i=1;i<=c.n;i++) 57. for(j=1;j<=c.m;j++) 58. for(k=1;k<=c.n;k++) 5 c.a[i][j]=(c.a[i][j]+a.a[i][k]*b.a[k][j])%mod; 60. return c; 61. } hh ff(hh a,int k) 64. { 65. int i,j; 66. hh c; 67. c.m=a.m; 68. c.n=a.n; 6 for(i=1;i<=min(c.n,c.m);i++) c.a[i][i]=1; 70. for(i=1;i<=c.n;i++) 71. for(j=1;j<=c.m;j++) 72. if(i!=j) c.a[i][j]=0; 73. while(k) 74. { 75. if(k&1) c=mul(a,c); 76. a=mul(a,a); 77. k>>=1; 78. } 7 return c; 80. } Another Code (I really don't know): 2. Problem: User: noip Time:7 ms 7. Memory:1084 kb 11. #include<cstdio> 12. #include<cstring> 13. const int maxn=3,mod=10000,sz=2; 14. int t,x,y,l,r; 15. struct Matrix 16. { 17. int num[maxn][maxn]; 18. Matrix operator*(matrix b) 1 { 20. Matrix res;memset(res.num,0,sizeof res.num); 21. for(register int i=1;i<=sz;++i)for(register int j=1;j<=sz;++j)for(register int k=1;k<=sz;++k)(res.num[i][j]+=num[i][k]*b.num[k][j])%=mo 22. return res; 23. } 24. void reset(){num[1][1]=num[1][2]=num[2][1]=1,num[2][2]=0;} 25. }ele; 26. Matrix operator^(matrix a,int n) 27. { 28. Matrix res;res.num[1][1]=res.num[2][2]=1,res.num[2][1]=res.num[1][2]=0; 2 for(;n;n>>=1,a=a*a)if(n&1)res=res*a; 30. return res; 31. } 32. int main() 33. { 34. for(scanf("%d",&t);t--;) 35. {
4 scanf("%d%d",&x,&y); ele.reset(); 38. ele=ele^(x-1);l=(ele.num[1][1]+ele.num[1][2])%mod; 3 ele.reset(); 40. ele=ele^y;r=(ele.num[1][1]+ele.num[1][2])%mod; 41. printf("%d\n",(r-l+mod)%mod); 42. } 43. return 0; 44. } Yet another code (I really don't know): 2. Problem: User: Owen 6. Time:8 ms 7. Memory:1084 kb 11. #include<cstdio> 12. #include<cstring> 13. using namespace std; 14. const int q=1e4; 15. struct matrix { 16. int a[3][3]; 17. void eye() { 18. a[1][2]=a[2][1]=0; 1 a[1][1]=a[2][2]=1; 20. } 21. void base() { 22. a[1][1]=a[1][2]=a[2][1]=1; 23. a[2][2]=0; 24. } 25. int first() { 26. return a[1][1]; 27. } 28. void clear() { 2 memset(a,0,sizeof a); 30. } 31. } bas,m,ret; 32. matrix mul(matrix b,matrix c) { 33. ret.clear(); 34. for (int i=1;i<=2;++i) for (int j=1;j<=2;++j) { 35. for (int k=1;k<=2;++k) (ret.a[i][j]+=b.a[i][k]*c.a[k][j])%=q; 36. } 37. return ret; 38. } 3 int get(int x) { 40. m.eye(); 41. bas.base(); 42. while (x) { 43. if (x&1) m=mul(m,bas); 44. x>>=1; 45. bas=mul(bas,bas); 46. } 47. return m.first(); 48. } 4 int main() { 50. #ifndef ONLINE_JUDGE 51. freopen("test.in","r",stdin); 52. #endif 53. int T; 54. scanf("%d",&t); 55. while (T--) { 56. int x,y; 57. scanf("%d%d",&x,&y); 58. int a=get(y+1),b=get(x); 5 int ans=(a-b+q)%q; 60. printf("%d\n",ans); 61. } 62. } Yet yet another code (I really don't know): 2. Problem: User: Time:9 ms 7. Memory:1084 kb 11. #include <cstdio> 12. #include <cstdlib> 13. #include <cstring> 14. const int Q=10000; 15. int tcas; inline int plus(int x,int y){return (x+y)%q;} 18. inline int mul(int x,int y){return (x*y)%q;} struct G{ 21. int a[2][2]; 22. G(){memset(a,0,sizeof(a));} 23. }fir,pr; 24. G operator *(G x,g y) 25. { 26. G res; 27. for(int k=0;k<2;k++) 28. for(int i=0;i<2;i++) 2 for(int j=0;j<2;j++) res.a[i][j]=plus(res.a[i][j],mul(x.a[i][k],y.a[k][j])); 30. return res; 31. } int get(int t) 34. { 35. G res=fir; 36. G x=pr; 37. for(;t>0;t>>=1) 38. { 3 if(t&1) res=x*res; 40. x=x*x; 41. } 42. return res.a[0][0]; 43. } int main() 46. { 47. #ifndef ONLINE_JUDGE 48. freopen("fibonacci.in","r",stdin); 4 freopen("fibonacci.out","w",stdout); 50. #endif
5 fir.a[0][0]=1;fir.a[1][0]=1; pr.a[0][1]=pr.a[1][0]=pr.a[1][1]=1; 53. int i,x,y; 54. scanf("%d",&tcas); 55. while(tcas--) 56. { 57. scanf("%d%d",&x,&y); 58. y++; 5 x=get(x),y=get(y); 60. printf("%d\n",(y-x% )%10000); 61. } 62. return 0; 63. } We have a simpler and faster way. Just brute-force. Taking into account that the answer should be moduloed. We can guess that is cyclical and we can find the cyclical is with the in this problem. So we can initialize the sequence and the sum like this: 1. MOD := CYCLE := fib := EMPTY SET 4. sum := EMPTY SET fib[1] = fib[2] = 1 7. sum[1] = 1 8. sum[2] = 2 for i in 3..CYCLE 11. fib[i] = (fib[i-1] + fib[i-2])%mod 12. sum[i] = (sum[i-1] + fib[i]) %MOD sum[cycle % CYCLE] = sum[cycle] The last line is that, we get by sum[i % CYCLE], so when i = CYCLE we get sum[0]. Then: 1. read n, m 2. output (sum[m%cycle] - sum[(n-1)%cycle] + MOD)%MOD What is the + MOD for? Imagine a situation when m > n-1 however m%cycle < (n-1)%cycle, we will get a negative number by evaluating sum[m%cycle] - sum[(n-1)%cycle]. So we should append a + MOD. But how it works? I don't know. I thought another way but failed. Here is it: We know where so we can calculate out the general term formula of. But includes, is something. And we can not modulo double like. But if we do not modulo in the halfway, we must deal with high precision big float number. So failed. NOIP2016 Simulation Nr. 49 Problem C 小 W 计树 问题描述 小 W 千辛万苦做出了数列题, 突然发现小 M 被困进了迷宫里 迷宫是一个有 N(2 N 1000) 个顶点 M(N?1 M N?(N? 1)/2 ) 条边的无向连通图 设 dist1[i] 表示在这个无向连通图中, 顶点 i 到顶点 1 的最短距离 为了解开迷宫, 现在要求小 W 在这个图中删除 M? (N? 1) 条边, 使得这个迷宫变成一棵树 设 dist2[i] 表示在这棵树中, 顶点 i 到顶点 1 的距离 小 W 的任务是求出有多少种删除方案, 使得对于任意的 i, 满足 dist1[i]=dist2[i] 快点帮助小 W 救出小 M 吧! 输入格式 第一行, 两个整数, N, M, 表示有 N 个顶点和 M 条边 接下来有 M 行, 每行有 3 个整数 x, y, len(1 x, y n, 1 len 100), 表示顶点 x 和顶点 y 有一条长度为 len 的边 数据保证不出现自环 重边 输出格式 一行两个整数, 表示满足条件的方案数 mod 的答案 输入输出样例 treecount.in treecount.in 2 样例解释 删除第一条边或第三条边都能满足条件, 所以方案数是 2 数据规模
6 对于 30% 的数据 :2 N 5,M 10 对于 50% 的数据 : 满足条件的方案数不超过 对于 100% 的数据 :2 N 1000 题解 首先考虑离 1 点最近的那个点, 一定和 1 点只连着一条边, 则这条边是必选的 ; 然后考察第二近的点, 一种可能是和 1 点直接连的边比较近, 一种可能是经过刚才最近的那个点再到 1 点的路比较近, 不管是哪一种, 选择都是唯一的, 而剩下第三种可能是两者距离相同, 这样的话两者选且只能选一个 以此类推, 假设现在已经构造好了前 k 个点的一棵子树, 看剩余点中到 1 点最近的点, 这个点到 1 点有 k 种方法 ( 分别是和那 k 个点连边 ), 其中有 m 个是可以保持最短距离的, 则这一步可选的边数就是 m 一直构造, 把方法数累乘, 就能得到最后的结果 整个过程可以很好的符合 dijkstra 的过程, 而生成树的步骤和 prim 如出一辙 1. #include<cstdlib> 2. #include<cstdio> 3. #include<cmath> 4. #include<cstring> 5. #include<algorithm> 6. #include<queue> 7. #define mod using namespace std; int n,m; 11. bool v[1005]; 12. int we[1010][1010], dis[1010]; 13. int last[1010]; 14. int tot=0; 15. struct hh 16. { 17. int next,to,w; 18. }e[ ]; long long ans=1; 21. struct node 22. { 23. int id,d; 24. }; 25. node a[1005]; 26. queue<int> q; bool cmp(node a, node b) 2 { 30. return a.d < b.d; 31. } void add(int a,int b,int c) 34. { 35. tot++; 36. e[tot].to=b; 37. e[tot].w=c; 38. we[a][b]=c; 3 e[tot].next=last[a]; 40. last[a]=tot; 41. } void spfa() 44. { 45. int i,now; 46. for(i=2;i<=n;i++) dis[i]= ; 47. q.push(1); 48. dis[1]=0; 4 while(!q.empty()) 50. { 51. now=q.front(); 52. q.pop(); 53. v[now]=false; 54. for(i=last[now];i;i=e[i].next) 55. if(dis[e[i].to]>dis[now]+e[i].w) 56. { 57. dis[e[i].to]=dis[now]+e[i].w; 58. if(!v[e[i].to]) 5 { 60. v[e[i].to]=true; 61. q.push(e[i].to); 62. } 63. } 64. } 65. } int main() 68. { 6 int i,j,x,y,z,now; 70. freopen("treecount.in","r",stdin); 71. freopen("treecount.out","w",stdout); 72. scanf("%d%d",&n,&m); 73. for(i=1;i<=n;i++) 74. for(j=1;j<=n;j++) 75. we[i][j]= ; 76. for(i=1;i<=m;i++) 77. { 78. scanf("%d%d%d",&x,&y,&z); 7 add(x,y,z); 80. add(y,x,z); 81. } 82. spfa(); 83. for (i=1;i<=n;i++) 84. { 85. a[i].id=i; 86. a[i].d=dis[i]; 87. } 88. sort(a+1,a+n+1,cmp); 8 for(i=2;i<=n;i++) 90. { 91. now=0; 92. for(j=1;j<=i-1;j++) 93. if(a[i].d==a[j].d+we[a[i].id][a[j].id]) now++; 94. ans=ans*(long long)now%mod; 95. } 96. printf("%lld",ans); 97. fclose(stdin); 98. fclose(stdout); 9 return 0; 100. } 首先考虑离 1 点最近的那个点, 一定和 1 点只连着一条边, 则这条边是必选的 ; 然后考察第二近的点, 一种可能是和 1 点直接连的边比较近, 一种可能是经过刚才最近的那个点再到 1 点的路比较近, 不管是哪一种, 选择都是唯一的, 而剩下第三种可能是两者距离相同, 这样的话两者选且只能选一个 以此类推, 假设现在已经构造好了前 k 个点的一棵子树, 看剩余点中到 1 点最近的点, 这个点到 1 点有 k 种方法 ( 分别是和那 k 个点连边 ), 其中有 m 个是可以保持最短距离的, 则这一步可选的边数就是 m 一直构造, 把方法数累乘, 就能得到最后的结果 整个过程可以很好的符合 dijkstra 的过程, 而生成树的步骤和 prim 如出一辙
7 2. Problem: User: GEOTCBRL 6. Time:141 ms 7. Memory:5664 kb 11. /* 12. I will chase the meteor for you, a thousand times over. 13. Please wait for me, until I fade forever. 14. Just 'coz GEOTCBRL. 15. */ 16. #include <bits/stdc++.h> 17. using namespace std; 18. #define fore(i,u) for (int i = head[u] ; i ; i = nxt[i]) 1 #define rep(i,a,b) for (int i = a, _ = b ; i <= _ ; i ++) 20. #define per(i,a,b) for (int i = a, _ = b ; i >= _ ; i --) 21. #define For(i,a,b) for (int i = a, _ = b ; i < _ ; i ++) 22. #define Dwn(i,a,b) for (int i = ((int) a) - 1, _ = (b) ; i >= _ ; i --) 23. #define fors(s0,s) for (int s0 = (s), _S = s ; s0 ; s0 = (s0-1) & _S) 24. #define foreach(it,s) for ( typeof(s.begin()) it = s.begin(); it!= s.end(); it ++) #define mp make_pair 27. #define pb push_back 28. #define pii pair<int, int> 2 #define fir first 30. #define sec second 31. #define MS(x,a) memset(x, (a), sizeof (x)) #define gprintf(...) fprintf(stderr, VA_ARGS ) 34. #define gout(x) std::cerr << #x << "=" << x << std::endl 35. #define gout1(a,i) std::cerr << #a << '[' << i << "]=" << a[i] << std::endl 36. #define gout2(a,i,j) std::cerr << #a << '[' << i << "][" << j << "]=" << a[i][j] << std::endl 37. #define garr(a,l,r,tp) rep ( it, l, r) gprintf(tp"%c", a[ it], " \n"[ it == _]) template <class T> inline void upmax(t&a, T b) { if (a < b) a = b ; } 40. template <class T> inline void upmin(t&a, T b) { if (a > b) a = b ; } typedef long long ll; const int maxn = 1007; 45. const int maxm = ; 46. const int mod = ; 47. const int inf = 0x7fffffff; 48. const double eps = 1e-7; typedef int arr[maxn]; 51. typedef int adj[maxm]; inline int fcmp(double a, double b) { 54. if (fabs(a - b) <= eps) return 0; 55. if (a < b - eps) return -1; 56. return 1; 57. } inline int add(int a, int b) { return ((ll) a + b) % mod ; } 60. inline int mul(int a, int b) { return ((ll) a * b) % mod ; } 61. inline int dec(int a, int b) { return add(a, mod - b % mod) ; } 62. inline int Pow(int a, int b) { 63. int t = 1; 64. while (b) { 65. if (b & 1) t = mul(t, a); 66. a = mul(a, a), b >>= 1; 67. } 68. return t; 6 } #define gc getchar 72. #define idg isdigit 73. #define rd RD<int> 74. #define rdll RD<long long> 75. template <typename Type> 76. inline Type RD() { 77. char c = getchar(); Type x = 0, flag = 1; 78. while (!idg(c) && c!= '-') c = getchar(); 7 if (c == '-') flag = -1; else x = c - '0'; 80. while (idg(c = gc()))x = x * 10 + c - '0'; 81. return x * flag; 82. } 83. inline char rdch() { 84. char c = gc(); 85. while (!isalpha(c)) c = gc(); 86. return c; 87. } 88. #undef idg 8 #undef gc // beginning int n, m; 94. arr G[maxn], dis, vis, pre; void input() { 97. n = rd(), m = rd(); 98. rep (i, 1, n) rep (j, 1, n) G[i][j] = n * 200; 9 rep (i, 1, m) { 100. int u = rd(), v = rd(), w = rd(); 101. G[u][v] = G[v][u] = w; 102. } 103. } inline void dijk() { 106. rep (i, 1, n) dis[i] = inf; 107. dis[1] = 0; 108. rep (x, 1, n) { 10 int u = 0; 1 rep (i, 1, n) if (!vis[i] && (!u dis[i] < dis[u])) u = i; 111. if (!u) break; 112. vis[u] = 1; 113. rep (v, 1, n) if (!vis[v] && G[u][v] <= 100) { 114. if (dis[v] > dis[u] + G[u][v]) { 115. dis[v] = dis[u] + G[u][v]; 116. pre[v] = 1; 117. } else if (dis[v] == dis[u] + G[u][v]) 118. pre[v] ++; 11 } 120. } 121. } void solve() { 124. dijk(); 125. // garr(pre, 1, n, "%d"); 126. int ans = 1; 127. rep (i, 2, n) ans = 1ll * ans * pre[i] % ; 128. printf("%d\n", ans); 12 }
8 int main() { 132. #ifndef ONLINE_JUDGE 133. freopen("data.txt", "r", stdin); 134. #endif 135. input(); 136. solve(); 137. return 0; 138. } 2. Problem: User: noip Time:470 ms 7. Memory:18672 kb 11. #include<cstdio> 12. #include<cstring> 13. typedef long long ll; 14. const int maxn=1005,maxe= ,maxe=500005,inf=1<<30; 15. ll mod= ll; 16. int head[maxn],to[maxe],next[maxe],len[maxe],dis[maxn],st[maxe],en[maxe],l[maxe],n,m,cnt; 17. bool inq[maxn]; 18. ll ans=1; 1 struct Queue 20. { 21. int num[maxn],s,t; 22. bool empty(){return s==t;} 23. int nxt(int x){return x==n-1?0:x+1;} 24. void pop(){s=nxt(s);} 25. void push(int x){num[t]=x;t=nxt(t);} 26. int front(){return num[s];} 27. void reset(){s=t=0;} 28. }q; 2 void insert(int a,int b,int c){to[cnt]=b,len[cnt]=c,next[cnt]=head[a];head[a]=cnt++;} 30. void spfa() 31. { 32. q.reset();q.push(1);memset(inq,0,sizeof inq);inq[1]=1; 33. for(register int i=1;i<=n;++i)dis[i]=inf;dis[1]=0; 34. int u; 35. while(!q.empty()) 36. { 37. inq[u=q.front()]=0;q.pop(); 38. for(register int i=head[u],v=to[i];~i;v=to[i=next[i]])if(dis[v]>dis[u]+len[i]) 3 { 40. dis[v]=dis[u]+len[i]; 41. if(!inq[v])q.push(v),inq[v]=1; 42. } 43. } 44. } 45. int main() 46. { 47. memset(head,-1,sizeof head); 48. scanf("%d%d",&n,&m);for(register int i=1;i<=m;++i)scanf("%d%d%d",st+i,en+i,l+i),insert(st[i],en[i],l[i]),insert(en[i],st[i],l[i]); 4 spfa(); 50. for(register int s=2;s<=n;++s) 51. { 52. cnt=0; 53. for(register int i=head[s],v=to[i];~i;v=to[i=next[i]])if(dis[v]+len[i]==dis[s])++cnt; 54. (ans*=cnt)%=mod; 55. } 56. printf("%lld\n",ans); 57. return 0; 58. } 2. Problem: User: ez_myh 6. Time:192 ms 7. Memory:5044 kb 11. #include <cstdio> 12. #include <cstring> 13. #include <algorithm> 14. #include <utility> 15. #define FR first 16. #define SE second using namespace std; typedef long long ll; 21. typedef pair<int,int> pr; int e[1005][1005]; int dis[1005]; 26. bool check[1005]; pr a[1005]; void dijkstra(int n) { 31. memset(dis,0x7f,sizeof(dis)); 32. dis[1]=0; 33. for(int i=1;i<n;i++) { 34. int p=0; 35. for(int j=1;j<=n;j++) 36. if (!check[j]&&dis[j]<dis[p]) p=j; 37. check[p]=true; 38. for(int j=1;j<=n;j++) 3 if (!check[j]&&e[p][j]) dis[j]=min(dis[j],dis[p]+e[p][j]); 40. } 41. } int main() { 44. int n,m; 45. scanf("%d%d",&n,&m); 46. for(int i=1;i<=m;i++) { 47. int x,y,z; 48. scanf("%d%d%d",&x,&y,&z); 4 e[x][y]=z; 50. e[y][x]=z; 51. } 52. dijkstra(n); 53. for(int i=1;i<=n;i++) a[i]=pr(dis[i],i); 54. sort(a+1,a+n+1); 55. int ans=1; 56. for(int i=2;i<=n;i++) { 57. int p=a[i].se,s=0; 58. for(int j=1;j<i;j++) { 5 int q=a[j].se; 60. if (e[q][p]&&dis[q]+e[q][p]==dis[p]) s++;
9 } ans=(ll)ans*s%0x7fffffff; 63. } 64. printf("%d\n",ans); 65. return 0; 66. } NOIP2016 Simulation Nr. 50 Problem A NOIP2016 Simulation Nr. 50 Problem B Cmd Markdown Slash We can't type some special symbol like $#\ in formula, just append slash \backslash in the head. We can't get slash by this way because slash slash \\ means line-break. We can use \backslash. Matrix We have 3 types of matrix. We use & to separate columns, \\ to separate lines in all types. Syntax: 1. \begin{matrix type} 2. 1 & pi^2 \\ 3. x & e 4. \end{matrix type} matrix for pmatrix for bmatrix} for M3. Inline-code Use `code` for code. You can type some special symbols without slash here. Table for 1. 项目 价格 数量 : :----: 3. 计算机 \$ 手机 \$ 管线 \$1 234 项目 价格数量 计算机 $ 手机 $12 12 管线 $1 234
新版 明解C++入門編
511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,
More informationC/C++程序设计 - 字符串与格式化输入/输出
C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int
More informationC/C++语言 - C/C++数据
C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;
More informationFY.DOC
高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主
More informationC++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1
C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 月 3 日 1 1 INPUTOUTPUT 1 InputOutput 题目描述 用 cin 输入你的姓名 ( 没有空格 ) 和年龄 ( 整数 ), 并用 cout 输出 输入输出符合以下范例 输入 master 999 输出 I am master, 999 years old. 注意 "," 后面有一个空格,"." 结束,
More informationC/C++ - 字符输入输出和字符确认
C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,
More informationC++ 程序设计 告别 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1
C++ 程序设计 告别 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1 1 TEMPLATE 1 Template 描述 使用模板函数求最大值 使用如下 main 函数对程序进行测试 int main() { double a, b; cin >> a >> b; cout c >> d; cout
More informationC 1
C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=
More informationCC213
: (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,
More information2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf ("%d", & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf ("%d %d
2013 18 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp, Compilation Error cin scanf Time Limit Exceeded 1: A 5 B 5 C 5 D 5 E 5 F 5 1 2013 C 1 # include 2 int main ( void ) 3 { 4 int cases, a, b,
More informationC/C++ - 文件IO
C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;
More information第3章.doc
3 3 3 3.1 3 IT Trend C++ Java SAP Advantech ERPCRM C++ C++ Synopsys C++ NEC C C++PHP C++Java C++Java VIA C++ 3COM C++ SPSS C++ Sybase C++LinuxUNIX Motorola C++ IBM C++Java Oracle Java HP C++ C++ Yahoo
More informationC/C++ - 函数
C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh
More information( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)
( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.
More informationC
C 2017 3 14 1. 2. 3. 4. 2/95 C 1. 3/95 C I 1 // talkback.c: 2 #include 3 #include 4 #define DENSITY 62.4 5 int main(void) 6 { 7 float weight, volume; 8 int size; 9 unsigned long letters;
More information新・解きながら学ぶC言語
330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180
More information02
Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC
More information新・明解C言語入門編『索引』
!... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177
More informationThe Development of Color Constancy and Calibration System
The Development of Color Constancy and Calibration System The Development of Color Constancy and Calibration System LabVIEW CCD BMP ii Abstract The modern technologies develop more and more faster, and
More information新版 明解C言語入門編
328, 4, 110, 189, 103, 11... 318. 274 6 ; 10 ; 5? 48 & & 228! 61!= 42 ^= 66 _ 82 /= 66 /* 3 / 19 ~ 164 OR 53 OR 164 = 66 ( ) 115 ( ) 31 ^ OR 164 [] 89, 241 [] 324 + + 4, 19, 241 + + 22 ++ 67 ++ 73 += 66
More informationC C
C C 2017 3 8 1. 2. 3. 4. char 5. 2/101 C 1. 3/101 C C = 5 (F 32). 9 F C 4/101 C 1 // fal2cel.c: Convert Fah temperature to Cel temperature 2 #include 3 int main(void) 4 { 5 float fah, cel; 6 printf("please
More informationLorem ipsum dolor sit amet, consectetuer adipiscing elit
English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位
More information2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf("%d", &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf("%
2013 ( 28 ) ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 10 B 1 C 1 D 5 E 5 F 1 G II 5 H 30 1 2013 C 1 #include 2 int main(void) 3
More information星河33期.FIT)
大 事 记 渊 2011.11 要 要 2011.12 冤 1 尧 11 月 25 日 下 午 袁 白 银 区 首 届 中 小 学 校 长 论 坛 在 我 校 举 行 遥 2 尧 在 甘 肃 省 2011 年 野 十 一 五 冶 规 划 课 题 集 中 鉴 定 中 袁 我 校 教 师 郝 香 梅 负 责 的 课 题 叶 英 语 课 堂 的 艺 术 性 研 究 曳 袁 张 宏 林 负 责 的 叶 白
More informationuntitled
A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (
More informationuntitled
1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override
More informationC 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf ("%d", & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9
201 201 21 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 1 B 1 C 5 D RPG 10 E 10 F 1 G II 1 1 201 201 C 1 # include 2 int main ( void
More informationC/C++ 语言 - 循环
C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf
More informationebook39-6
6 first-in-first-out, FIFO L i n e a r L i s t 3-1 C h a i n 3-8 5. 5. 3 F I F O L I F O 5. 5. 6 5. 5. 6.1 [ ] q u e n e ( r e a r ) ( f r o n t 6-1a A 6-1b 6-1b D C D 6-1c a) b) c) 6-1 F I F O L I F ADT
More information内 容 提 要 指 针 持 久 动 态 内 存 分 配 字 符 串 ( 字 符 数 组 ) 2
第 六 讲 指 针 与 字 符 串 1 内 容 提 要 指 针 持 久 动 态 内 存 分 配 字 符 串 ( 字 符 数 组 ) 2 指 针 什 么 是 指 针 指 针 的 定 义 与 运 算 指 针 与 一 维 数 组 指 针 数 组 行 指 针 与 二 维 数 组 指 针 与 引 用 指 针 与 函 数 3 指 针 定 义 什 么 是 指 针 指 针 变 量, 简 称 指 针, 用 来 存 放
More information國立桃園高中96學年度新生始業輔導新生手冊目錄
彰 化 考 區 104 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 彰 化 縣 政 府 104 年 01 月 27 日 府 教 學 字 第 1040027611 號 函 中 華 民 國 104 年 2 月 9 日 彰 化 考 區 104 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 鹿 港 高 級 中 學 地 址 :50546 彰 化 縣 鹿 港 鎮
More informationC/C++ - 字符串与字符串函数
C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed
More informationTX-NR3030_BAS_Cs_ indd
TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5
More informationA. Alice的车牌号
Solution A. Alice 的车牌号 字符串匹配, 只要在所给字符串中查找是否出现 "13" 这个子串即可, 关键代码如下 bool judge(char str[]) return strstr(str, "13") == NULL; Code: #include #include #include #include
More information徐汇教育214/3月刊 重 点 关 注 高中生异性交往的小团体辅导 及效果研究 颜静红 摘 要 采用人际关系综合诊断量表 郑日昌编制并 与同性交往所不能带来的好处 带来稳定感和安全感 能 修订 对我校高一学生进行问卷测量 实验组前后测 在 够度过更快乐的时光 获得与别人友好相处的经验 宽容 量表总分和第 4 项因子分 异性交往困扰 上均有显著差 大度和理解力得到发展 得到掌握社会技术的机会 得到 异
More information穨control.PDF
TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe
More information高雄市左營國民小學八十九學年度第一學期一年級總體課程教學進度表
高 雄 市 前 鎮 區 紅 毛 港 國 民 小 學 102 學 年 度 第 1 學 期 ( 五 ) 年 級 各 領 域 教 學 進 度 總 表 教 學 者 :( 五 ) 年 級 教 學 團 隊 彈 性 學 習 時 數 -5 節 班 級 活 動 週 別 日 期 一 0830-0901 二 0902-0908 三 0909-0915 四 0916-0922 五 0923-0929 學 校 活 動 學 年
More information<4D6963726F736F667420506F776572506F696E74202D20312EB9FEB6FBB1F5B9A4D2B5B4F3D1A7D5E7C1BCA3BAC3E6CFF2D1D0BEBFC9FAB8B4CAD4B5C4BDE1B9B9BBAFC3E6CAD4BFBCBACBCCBDCBF7D3EBCAB5BCF92E707074205BBCE6C8DDC4A3CABD5D>
面 向 研 究 生 复 试 的 结 构 化 面 试 考 核 探 索 与 实 践 哈 尔 滨 工 业 大 学 甄 良 2015 年 11 月 5 日 一 背 景 情 况 ( 一 ) 研 究 生 招 生 的 政 策 背 景 招 生 是 一 个 教 育 热 点, 也 是 一 个 社 会 热 点 国 家 重 要 的 教 育 领 域 改 革 文 件 都 对 招 生 改 革 出 了 明 确 要 求 国 务 院
More informationC/C++语言 - 分支结构
C/C++ Table of contents 1. if 2. if else 3. 4. 5. 6. continue break 7. switch 1 if if i // colddays.c: # include int main ( void ) { const int FREEZING = 0; float temperature ; int cold_ days
More informationWWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2
WWW PHP 2003 1 Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 Comments PHP Shell Style: # C++ Style: // C Style: /* */ $value = $p * exp($r * $t); # $value
More informationint *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;
Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,
More information_汪_文前新ok[3.1].doc
普 通 高 校 本 科 计 算 机 专 业 特 色 教 材 精 选 四 川 大 学 计 算 机 学 院 国 家 示 范 性 软 件 学 院 精 品 课 程 基 金 青 年 基 金 资 助 项 目 C 语 言 程 序 设 计 (C99 版 ) 陈 良 银 游 洪 跃 李 旭 伟 主 编 李 志 蜀 唐 宁 九 李 涛 主 审 清 华 大 学 出 版 社 北 京 i 内 容 简 介 本 教 材 面 向
More informationChapter12 Derived Classes
继 承 -- 派 生 类 复 习 1. 有 下 面 类 的 说 明, 有 错 误 的 语 句 是 : class X { A) const int a; B) X(); C) X(int val) {a=2 D) ~X(); 答 案 :C 不 正 确, 应 改 成 X(int val) : a(2) { 2. 下 列 静 态 数 据 成 员 的 特 性 中, 错 误 的 是 A) 说 明 静 态 数
More information新北考區105年國中教育會考簡章
新 北 考 區 105 年 國 中 教 育 會 考 簡 章 簡 章 核 定 文 號 : 新 北 市 政 府 教 育 局 104 年 12 月 22 日 新 北 教 中 字 第 1042404516 號 函 中 華 民 國 105 年 1 月 15 日 新 北 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 新 北 市 立 新 莊 高 級 中 學 地 址 :24217
More informationMicrosoft Word - 11月電子報1130.doc
發 行 人 : 楊 進 成 出 刊 日 期 2008 年 12 月 1 日, 第 38 期 第 1 頁 / 共 16 頁 封 面 圖 話 來 來 來, 來 葳 格 ; 玩 玩 玩, 玩 數 學 在 11 月 17 到 21 日 這 5 天 裡 每 天 一 個 題 目, 孩 子 們 依 據 不 同 年 段, 尋 找 屬 於 自 己 的 解 答, 這 些 數 學 題 目 和 校 園 情 境 緊 緊 結
More informationUntitiled
目 立人1 2011 录 目 录 专家视点 权利与责任 班主任批评权的有效运用 齐学红 3 德育园地 立 沿着鲁迅爷爷的足迹 主题队活动案例 郑海娟 4 播下一颗美丽的种子 沿着鲁迅爷爷的足迹 中队活动反思 郑海娟 5 赠人玫瑰 手有余香 关于培养小学生服务意识的一些尝试和思考 孙 勤 6 人 教海纵横 2011 年第 1 期 总第 9 期 主办单位 绍兴市鲁迅小学教育集团 顾 问 编委会主任 编
More information國立桃園高中96學年度新生始業輔導新生手冊目錄
澎 湖 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 澎 湖 縣 政 府 104 年 12 月 15 日 府 教 學 字 第 1040072602 號 函 中 華 民 國 105 年 1 月 15 日 澎 湖 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 馬 公 高 級 中 學 地 址 : 澎 湖 縣 馬 公 市 中 華 路 369
More information〇〇考區105年國中教育會考簡章
高 雄 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 高 雄 市 政 府 教 育 局 104 年 12 月 28 日 高 市 教 高 字 字 第 10438650500 號 函 中 華 民 國 105 年 1 月 15 日 高 雄 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 岡 山 高 級 中 學 地 址 :82041 高 雄
More information錫安教會2015年11月29日分享
錫 安 教 會 2015 年 11 月 29 日 分 享 第 一 章 : 天 馬 座 行 動 答 問 篇 (2) 問 題 (1): 信 息 中 曾 提 及, 有 一 群 忠 良 的 皇 者 和 精 英 製 造 共 同 信 息, 但 亦 有 一 群 奸 惡 的 如 果 將 來 他 們 來 尋 找 我 們, 顯 示 他 們 是 製 造 共 同 信 息 的 人 這 樣, 我 們 有 沒 有 需 要 或 者
More informationLOVE IS OVER LOVE LOVE LOVE LOVE IS EVERYTHING LOVE LOVE LOVE LOVER'S QUEEN LYDIA MAYBE TOMORROW MEN'S TALK MY DEAR MY FRIEND MY OH MY MY SUMMER DREAM
曲名 1234 20.30.40 5678 GOING 929 9907 A BTTER DAY ANDY BABY I'M YOUR MAN BACK HOME BAD BOY BEAUTIFUL GIRL BABY BABY BACK HOME BEAUTIFUL DAY BECAUSE OF YOU BETTER MAN CAN'T STOP LOVING YOU CALL ME CAN YOU
More information第5章修改稿
(Programming Language), ok,, if then else,(), ()() 5.0 5.0.0, (Variable Declaration) var x : T x, T, x,,,, var x : T P = x, x' : T P P, () var x:t P,,, yz, var x : int x:=2. y := x+z = x, x' : int x' =2
More informationC/C++语言 - 运算符、表达式和语句
C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe
More information翻 那 本 日 记, 好 像 和 自 己 赌 气, 好 像 那 个 人 还 在 乎 一 样, 里 面 的 内 容, 因 为 在 较 着 劲, 就 是 不 愿 意 去 看 那 些 甜 蜜 的 过 往 小 小 的 日 记 本 塞 在 行 李 箱 的 底 部, 安 静 地 呆 在 那 儿, 只 是, 不
蓦 然 回 首 / 作 者 : 温 昀 Chapter 1 如 果 知 道 离 开 了 你 的 我 是 这 么 脆 弱, 那 么 当 初, 我 无 论 如 何 也 会 低 下 自 己 高 高 仰 起 脸 庞, 可 是 陈 然, 你 去 哪 儿 了? 人 生 就 是 这 样, 也 许 就 是 一 个 转 身 过 后, 彼 此 走 出 了 曾 经 的 生 活, 原 本 如 此 熟 悉, 如 此 重 要
More information莊 子
作 家 追 踪 莊 子 鄧 城 鋒 博 士 2012 年 5 月 5 日 1 1. 莊 子 與 莊 子 2. 逍 遙 遊 要 義 3. 齊 物 養 生 要 義 4. 莊 子 與 文 學 2 莊 子 ( 前 369?- 前 286?) 莊 子 之 家 世 及 社 會 地 位 有 書 可 讀, 不 耕 不 役 其 學 無 所 不 窺, 不 求 實 用 沒 落 貴 族 消 極 厭 世, 不 求 上 進 莊
More informationuntitled
1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-1-1 C int main(void){ int x,y,z; int sum=0; double avg=0.0; scanf("%d",&x) ; scanf("%d",&y) ; scanf("%d",&z) ; sum=x+y+z ; avg=sum/3.0; printf("%f\n",avg); system("pause");
More informationebook39-5
5 3 last-in-first-out, LIFO 3-1 L i n e a r L i s t 3-8 C h a i n 3 3. 8. 3 C + + 5.1 [ ] s t a c k t o p b o t t o m 5-1a 5-1a E D 5-1b 5-1b E E 5-1a 5-1b 5-1c E t o p D t o p D C C B B B t o p A b o
More informationMicrosoft Word - 第3章.doc
Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck
More information105 年 國 中 教 育 會 考 重 要 日 期 項 目 日 期 及 時 間 報 名 1. 集 體 報 名 :105 年 3 月 10 日 ( 星 期 四 ) 至 3 月 12 日 ( 星 期 六 ) 每 日 8:00~12:00 13:30~17:00 2. 個 別 報 名 : 於 上 網 填
屏 東 考 區 105 年 國 中 教 育 會 考 簡 章 核 定 文 號 : 屏 東 縣 政 府 104 年 12 月 30 日 屏 府 教 學 字 第 10480599200 號 函 中 華 民 國 105 年 1 月 15 日 屏 東 考 區 105 年 國 中 教 育 會 考 試 務 會 編 印 主 辦 學 校 : 國 立 屏 北 高 級 中 學 地 址 : 屏 東 縣 鹽 埔 鄉 彭 厝
More informationMicrosoft Word - Final Exam Review Packet.docx
Do you know these words?... 3.1 3.5 Can you do the following?... Ask for and say the date. Use the adverbial of time correctly. Use Use to ask a tag question. Form a yes/no question with the verb / not
More informationChapter 1 What is Programing Paradigm 1
An Introduction to Programing Paradigm Chase Zhang May 8, 2013 Chapter 1 What is Programing Paradigm 1 CHAPTER 1. WHAT IS PROGRAMING PARADIGM 2 Definition from Wikipedia 1. Object-oriented programming/
More information4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡
Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外
More informationMicrosoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish
我 难 度 : 高 级 对 们 现 不 在 知 仍 道 有 听 影 过 响 多 少 那 次 么 : 研 英 究 过 文 论 去 写 文 时 作 的 表 技 引 示 巧 言 事 : 部 情 引 分 发 言 该 生 使 在 中 用 过 去, 而 现 在 完 成 时 仅 表 示 事 情 发 生 在 过 去, 并 的 哪 现 种 在 时 完 态 成 呢 时? 和 难 过 道 去 不 时 相 关? 是 所 有
More information( 一 ) 實 習 的 時 候 就 和 讀 書 會 的 同 學 一 起 把 陳 嘉 陽 紮 實 地 讀 過 一 遍 了, 也 因 此 在 考 完 教 檢 之 後, 我 們 只 有 把 不 熟 或 是 常 考 的 章 節 再 導 讀 一 次 ( 例 如 : 統 計 行 政 法 規 ), 主 力 則 是
確 立 目 標, 全 力 衝 刺 102 年 國 中 英 文 科 教 甄 準 備 心 得 主 修 社 會 教 育 學 系 輔 修 英 語 學 系 100 級 臺 北 市 立 東 湖 國 民 中 學 王 建 順 壹 102 國 中 英 文 科 教 甄 準 備 心 得 -- 筆 試 篇 有 幸 能 在 第 一 年 的 第 一 場 國 中 教 甄 脫 穎 而 出, 一 路 上 很 感 謝 前 輩 學 長
More informationWe are now living happily. We are now living a happy life. He is very healthy. He is in good health. I am sure that he will succeed. I am sure of his success. I am busy now. I am not free now. May I borrow
More information100學年度大學推甄申請面試題庫
101 學 年 度 大 學 推 甄 申 請 面 試 題 庫 政 治 大 學 斯 拉 夫 語 文 學 系 5 阿 拉 伯 語 文 學 系 6 國 防 大 學 管 理 學 院 資 訊 管 理 學 系 7 運 籌 管 理 學 系 9 中 央 大 學 中 文 系 10 台 灣 師 範 大 學 歷 史 系 11 特 教 系 12 彰 化 師 範 大 學 中 文 系 13 國 防 理 工 學 院 14 國 立
More information2-7.FIT)
文 化 园 地 8 2009 年 8 月 18 日 星 期 二 E-mail:liuliyuan@qunlitimes.com 群 立 文 化 感 受 今 天 你 开 心 了 吗? 周 传 喜 群 雄 争 立 竞 争 意 识 ; 傲 立 群 雄 奋 斗 目 标, 这 几 句 话 一 直 是 群 立 的 文 化 和 方 针, 也 同 样 是 我 很 喜 欢 的 座 右 铭 我 想 这 几 句 话 生
More informationBC04 Module_antenna__ doc
http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 1 of 10 http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 2 of 10 http://www.infobluetooth.com TEL:+86-23-68798999
More informationMicrosoft PowerPoint - ch6 [相容模式]
UiBinder wzyang@asia.edu.tw UiBinder Java GWT UiBinder XML UI i18n (widget) 1 2 UiBinder HelloWidget.ui.xml: UI HelloWidgetBinder HelloWidget.java XML UI Owner class ( Composite ) UI XML UiBinder: Owner
More information2009.05
2009 05 2009.05 2009.05 璆 2009.05 1 亿 平 方 米 6 万 套 10 名 20 亿 元 5 个 月 30 万 亿 60 万 平 方 米 Data 围 观 CCDI 公 司 内 刊 企 业 版 P08 围 观 CCDI 管 理 学 上 有 句 名 言 : 做 正 确 的 事, 比 正 确 地 做 事 更 重 要 方 向 的 对 错 于 大 局 的 意 义 而 言,
More informationLorem ipsum dolor sit amet, consectetuer adipiscing elit
留 学 澳 洲 英 语 讲 座 English for Study in Australia 第 十 三 课 : 与 同 学 一 起 做 功 课 Lesson 13: Working together L1 Male 各 位 听 众 朋 友 好, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female 各 位 好, 我 是 马 健 媛 L1 Male L1
More informationMicrosoft Word - 第四組心得.doc
徐 婉 真 這 四 天 的 綠 島 人 權 體 驗 營 令 我 印 象 深 刻, 尤 其 第 三 天 晚 上 吳 豪 人 教 授 的 那 堂 課, 他 讓 我 聽 到 不 同 於 以 往 的 正 義 之 聲 轉 型 正 義, 透 過 他 幽 默 熱 情 的 語 調 激 起 了 我 對 政 治 的 興 趣, 願 意 在 未 來 多 關 心 社 會 多 了 解 政 治 第 一 天 抵 達 綠 島 不 久,
More informationC++ 程序设计 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1
C++ 程序设计 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1 1 PERSON 1 Person 题目描述 编写程序, 定义一个基类 Person, 包含 name 和 age 两个数据成员 ; 再由它派生出学生类 Student 和教师类 Teacher, 其中学生类添加学号 no 数据, 教师类添加职称 title 数据 ; 要求每个类均有构造函数 析构函数和显示数据的函数
More informationuntitled
3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(
More information3.1 num = 3 ch = 'C' 2
Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:
More informationImportant Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO
Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS
More information090304issue
2008-2009 年 3 至 4 月 份 春 天 是 一 個 乍 暖 還 寒 的 日 子, 又 是 流 感 高 峰 期, 校 長 希 望 大 家 能 多 做 運 動, 注 重 均 衡 飲 食, 保 持 身 體 健 康 本 校 致 力 營 造 關 愛 校 園 文 化, 成 立 小 角 義 工, 金 章 同 學 會 及 關 愛 大 使, 目 的 是 透 過 學 生 參 與 不 同 的 服 務 經 歷,
More informatione bug 0 x=0 y=5/x 0 Return 4 2
e 1 4 1 4 4.1 4.2 4.3 4.4 4.5 e 2 4.1 bug 0 x=0 y=5/x 0 Return 4 2 e 3 4 3 e 4 (true) (false) 4 4 e 5 4 5 4.2 1 G= V E V={n1,n2,,n m } E={e1,e2,,e p } e k ={n i,n j }, n i,n j V e 6 4.2 4 6 1 e 3 n 1 e
More informationMicrosoft Word - CPE考生使用手冊160524.docx
大 學 程 式 能 力 檢 定 (CPE) 考 生 使 用 手 冊 2016 年 5 月 24 日 這 份 手 冊 提 供 給 參 加 CPE 檢 定 考 試 的 考 生 內 容 包 含 考 試 環 境 的 使 用, 以 及 解 題 時 所 使 用 I/O 的 基 本 知 識 1. 如 欲 報 名 參 加 CPE 考 試, 請 先 於 CPE 網 站 完 成 帳 號 註 冊, 然 後 再 報 名 該
More information三維空間之機械手臂虛擬實境模擬
VRML Model of 3-D Robot Arm VRML Model of 3-D Robot Arm MATLAB VRML MATLAB Simulink i MATLAB Simulink V-Realm Build Joystick ii Abstract The major purpose of this thesis presents the procedure of VRML
More information数据结构与算法 - Python基础
Python 教材及课件 课件及作业见网址 xpzhang.me 1 1. Python 2. 3. (list) (tuple) 4. (dict) (set) 5. 6. 7. 2 Python Python 3 Python 4 Python 1, 100, -8080, 0,... 0x 0-9, a-f 0 xff00, 0 xa432bf 5 1.24, 3.14, -9.80,...
More informationCHAPTER VC#
1. 2. 3. 4. CHAPTER 2-1 2-2 2-3 2-4 VC# 2-5 2-6 2-7 2-8 Visual C# 2008 2-1 Visual C# 0~100 (-32768~+32767) 2 4 VC# (Overflow) 2-1 2-2 2-1 2-1.1 2-1 1 10 10!(1 10) 2-3 Visual C# 2008 10! 32767 short( )
More information2009 Japanese First Language Written examination
Victorian Certificate of Education 2009 SUPERVISOR TO ATTACH PROCESSING LABEL HERE STUDENT NUMBER Letter Figures Words JAPANESE FIRST LANGUAGE Written examination Monday 16 November 2009 Reading time:
More informationMicrosoft Word - ChineseSATII .doc
中 文 SAT II 冯 瑶 一 什 么 是 SAT II 中 文 (SAT Subject Test in Chinese with Listening)? SAT Subject Test 是 美 国 大 学 理 事 会 (College Board) 为 美 国 高 中 生 举 办 的 全 国 性 专 科 标 准 测 试 考 生 的 成 绩 是 美 国 大 学 录 取 新 生 的 重 要 依
More informationebook14-4
4 TINY LL(1) First F o l l o w t o p - d o w n 3 3. 3 backtracking parser predictive parser recursive-descent parsing L L ( 1 ) LL(1) parsing L L ( 1 ) L L ( 1 ) 1 L 2 L 1 L L ( k ) k L L ( 1 ) F i r s
More informationMicrosoft Word - 十月號.doc
沙 田 培 英 中 學 二 零 零 五 年 十 月 十 月 號 地 址 : 沙 田 禾 輋 邨 豐 順 街 9 號 電 話 :2691 7217 傳 真 :2602 0411 電 郵 :stpyc@school.net.hk 主 筆 : 邱 譪 源 校 長 張 敏 芝 小 姐 親 愛 的 家 長 同 學 和 校 友 : 新 學 年 已 開 始 了 幾 個 星 期, 今 天 剛 收 到 教 統 局 發
More information\\Lhh\07-02\黑白\内页黑白1-16.p
Abstract: Urban Grid Management Mode (UGMM) is born against the background of the fast development of digital city. It is a set of urban management ideas, tools, organizations and flow, which is on the
More information2010 Japanese First Language Written examination
Victorian Certificate of Education 2010 SUPERVISOR TO ATTACH PROCESSING LABEL HERE STUDENT NUMBER Letter Figures Words JAPANESE FIRST LANGUAGE Written examination Monday 15 November 2010 Reading time:
More informationWindows XP
Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs
More informationENGG1410-F Tutorial 6
Jianwen Zhao Department of Computer Science and Engineering The Chinese University of Hong Kong 1/16 Problem 1. Matrix Diagonalization Diagonalize the following matrix: A = [ ] 1 2 4 3 2/16 Solution The
More information2009 Korean First Language Written examination
Victorian Certificate of Education 2009 SUPERVISOR TO ATTACH PROCESSING LABEL HERE STUDENT NUMBER Letter Figures Words KOREAN FIRST LANGUAGE Written examination Tuesday 20 October 2009 Reading time: 2.00
More informationLove Actually 真 的 戀 愛 了!? 焦 點 主 題 2035 年 一 個 寒 冷 卻 又 放 晴 的 下 午, 爸 媽 一 大 清 早 已 上 班, 只 得 小 奈 獨 個 兒 待 在 家 中, 奢 侈 地 享 受 著 她 的 春 節 假 期 剛 度 過 了 期 考 的 艱 苦 歲
愛 情, 每 一 個 人 都 十 分 渴 望 有 的, 不 論 成 年 人 還 是 中 學 生 但 是, 你 知 道 甚 麼 是 愛 情 嗎? 如 何 才 可 以 擁 有 真 正 的 愛 情? 池 田 先 生 對 愛 情 方 面 有 些 甚 麼 指 導 呢? 01 焦 點 主 題 Love Actually... 真 的 戀 愛 了!? 09 Love Song 11 女 未 來 部 長 專 訪 15
More information參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特
WE ARE BOY S BRIGADE 參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特 別 之 處 如 控 制 時 間 及 人 流 方 面, 香
More informationC++ 程式設計
C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004
More information-------------------------------------------------------------------------------- Pekinger in NewYork -------------------------------------------------------------------------------- 1011 121314 151617
More information逢 甲 大 學
Maple Computer Animation Fourbar Linkage Using Maple Maple Maple i Maple Maple ii Abstract "Four-Bar Linkage" is very general in our life, so we can learn the knowledge of "Four-Bar Linkage" in mobile.
More information中国科学技术大学学位论文模板示例文档
University of Science and Technology of China A dissertation for doctor s degree An Example of USTC Thesis Template for Bachelor, Master and Doctor Author: Zeping Li Speciality: Mathematics and Applied
More informationMicrosoft PowerPoint - string_kruse [兼容模式]
Strings Strings in C not encapsulated Every C-string has type char *. Hence, a C-string references an address in memory, the first of a contiguous set of bytes that store the characters making up the string.
More information新・解きながら学ぶJava
481! 41, 74!= 40, 270 " 4 % 23, 25 %% 121 %c 425 %d 121 %o 121 %x 121 & 199 && 48 ' 81, 425 ( ) 14, 17 ( ) 128 ( ) 183 * 23 */ 3, 390 ++ 79 ++ 80 += 93 + 22 + 23 + 279 + 14 + 124 + 7, 148, 16 -- 79 --
More information99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 370-2 英領域 Kent
2010 年 8 月 27 日 出 刊 精 緻 教 育 宜 蘭 縣 公 辦 民 營 人 國 民 中 小 學 財 團 法 人 人 適 性 教 育 基 金 會 承 辦 地 址 : 宜 蘭 縣 26141 頭 城 鎮 雅 路 150 號 (03)977-3396 http://www.jwps.ilc.edu.tw 健 康 VS. 學 習 各 位 合 夥 人 其 實 都 知 道, 我 是 個 胖 子, 而
More information