2013年3月18日

摘要: http://acdreamoj.sinaapp.com/problem.php?id=1080递推公式 自己没有弄出来 记住吧 #include<iostream>#include<stdio.h>#include<cstring>#include<algorithm>using namespace std;long long N;long long find( int sta,int end,long long val ){ if( end - sta <= 4 ) { for( long long i = sta; i <= e 阅读全文
posted @ 2013-03-18 13:10 浪舟 阅读(226) 评论(0) 推荐(0)
摘要: http://acdreamoj.sinaapp.com/problem.php?id=1083第一道 数位dp 感触很深; 1 #include<iostream> 2 #include<stdio.h> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 7 int arr[11],num[11][4]; 8 bool vis[11][4]; 9 10 11 int judge( int stu,int i)12 {13 if( i == 3 ) return 阅读全文
posted @ 2013-03-18 13:07 浪舟 阅读(247) 评论(0) 推荐(0)
摘要: http://acdreamoj.sinaapp.com/problem.php?id=1084证明过程 链接正方形的对角线 然后证明两个三角形相等; 1 #include<iostream> 2 #include<stdio.h> 3 #include<cstring> 4 #include<algorithm> 5 #include<cmath> 6 using namespace std; 7 8 int main( ) 9 {10 int T;11 double N,a;12 scanf("%d",& 阅读全文
posted @ 2013-03-18 13:05 浪舟 阅读(217) 评论(0) 推荐(0)
摘要: http://acdreamoj.sinaapp.com/problem.php?id=1079注意好 I64d 和 long long 特判 最大值就行; 1 #include<iostream> 2 #include<stdio.h> 3 #include<cstring> 4 #include<algorithm> 5 #include<cmath> 6 using namespace std; 7 8 long long a,b,c,d; 9 10 long long abs( long long a,long long b 阅读全文
posted @ 2013-03-18 13:01 浪舟 阅读(214) 评论(0) 推荐(0)

导航