摘要:
http://acm.nyist.net/JudgeOnline/problem.php?pid=3刚开始的时候自己没想到,然后看大牛的题解。一直不懂的是为什么大牛用两个点就可以求出面积来。问了明智,知道了原来是因为所有的面积的计算表达式的展开会消去相同的项,然后就两个点表示就可以了。大牛的日志:http://blog.csdn.net/niushuai666/article/details/7454078View Code 1 #include <stdio.h> 2 #include <math.h> 3 #include <iostream> 4 #i 阅读全文
posted @ 2012-09-17 10:59
YORU
阅读(721)
评论(0)
推荐(0)
摘要:
http://codeforces.com/problemset/problem/224/B暴力View Code 1 #include <iostream> 2 using namespace std; 3 const int maxn=100005; 4 bool f[maxn]; 5 int ans[maxn],s[maxn]; 6 int main() 7 { 8 int n,k,i,j,mark; 9 cin>>n>>k;10 {11 mark=-1;12 for(i=0;i<n;i++)13 {14 ... 阅读全文
posted @ 2012-09-17 09:54
YORU
阅读(200)
评论(0)
推荐(0)
摘要:
http://acm.nyist.net/JudgeOnline/problem.php?pid=63数据结构。View Code 1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int n,m,i,j; 6 while(cin>>n>>m,n||m) 7 { 8 j=1; 9 for(i=0;i<n;i++)10 {11 if(m%2)12 {13 j=j*2;... 阅读全文
posted @ 2012-09-17 09:03
YORU
阅读(153)
评论(0)
推荐(0)

浙公网安备 33010602011771号