摘要: Description An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roug 阅读全文
posted @ 2016-03-17 21:54 超级学渣渣 阅读(1994) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ char c; int j; while((c = getchar())!= EOF){ if(c != '\n'){ putchar(c-7); } else putchar(c); } return 0; } 阅读全文
posted @ 2016-03-16 21:50 超级学渣渣 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int main(){ int n=0; char a; int flag=1; while((scanf("%c",&a)!=EOF)) { if(a>='a'&&a<='z'||a>='A'&&a<='Z') 阅读全文
posted @ 2016-03-16 21:49 超级学渣渣 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int n,m; unsigned long long int a,b,c,sum; while((scanf("%d",&n)!=EOF)) { for(int i=0;i>m; sum=0; for(int i=... 阅读全文
posted @ 2016-03-16 11:22 超级学渣渣 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Description Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisti 阅读全文
posted @ 2016-03-14 23:22 超级学渣渣 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int v=0; int e=0 ; for(int i=0;i<=n-2;i++) { v+=i*(n-i-2); e+=(i*(n-i-2)+1); 阅读全文
posted @ 2016-03-12 18:38 超级学渣渣 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct pos { double x; double y; }; //计算三角形的有向面积 double area(double x0,double y0,double x1,double y1,doub 阅读全文
posted @ 2016-03-12 16:26 超级学渣渣 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main() { int flag[100]; int prime[100]; memset(flag,true,sizeof(flag)); memset(prime,0,sizeof(prime)) 阅读全文
posted @ 2016-03-12 15:13 超级学渣渣 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define max 100 using namespace std; int flag[max]; int prime[max]; int main() { int t=0; memset(flag,1,sizeof(flag)); for(int 阅读全文
posted @ 2016-03-12 13:56 超级学渣渣 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 题目描述 如下数列,前5项分别是1/1,1/2,2/1,3/1,2/2……。输入n,输出第n项。 1/1 1/2 1/3 1/4 1/5 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 样例输入 3 14 7 12345 样例输出 2/1 2/4 1/4 59/99 阅读全文
posted @ 2016-03-11 22:00 超级学渣渣 阅读(511) 评论(0) 推荐(0) 编辑