摘要:
杭电1690不理解View Code 1 #include<stdio.h> 2 #include<iostream> 3 using namespace std; 4 #define maxint 0x7f7f7f7f7f7f7f7fLL 5 typedef __int64 LL; 6 LL mat[105][105]; 7 LL cor[105]; 8 LL l1,l2,l3,l4,c1,c2,c3,c4; 9 int n;10 LL change(LL x)11 {12 if(x<0) x=-x;13 if(x>0&&x<=l1) 阅读全文
posted @ 2012-07-26 17:29
zlyblog
阅读(196)
评论(0)
推荐(0)
摘要:
杭电2680Problem DescriptionOne day , Kiki wants to visit one of her friends. As she is liable to carsickness , she wants to arrive at her friend’s home as soon as possible . Now give you a map of the city’s traffic route, and the stations which are near Kiki’s home so that she can take. You may suppos 阅读全文
posted @ 2012-07-26 15:23
zlyblog
阅读(284)
评论(0)
推荐(0)
摘要:
杭电1596其实本题思路还是运用迪杰斯特拉算法,与前面题有所不同的是本题找最大值,这就要注意,在选取过程中,变量的控制;View Code 1 //杭电1596 2 #include<stdio.h> 3 #include<string.h> 4 #define M 999999999 5 #define N 1010 6 int b[N]; 7 double map[N][N],a[N]; 8 int panduan(double x) 9 {10 return x>0?1:0;//实数与零比较11 }12 13 int main()14 {15 int n,m 阅读全文
posted @ 2012-07-26 10:34
zlyblog
阅读(228)
评论(0)
推荐(0)

浙公网安备 33010602011771号