锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97精品久久天干天天天按摩,欧美黑人激情性久久,久久亚洲中文字幕精品有坂深雪http://www.shnenglu.com/syhd142/category/14164.htmlzh-cnTue, 05 Oct 2010 11:56:44 GMTTue, 05 Oct 2010 11:56:44 GMT60UVA 972 Horizon Linehttp://www.shnenglu.com/syhd142/articles/128065.htmlFuckerFuckerWed, 29 Sep 2010 08:52:00 GMThttp://www.shnenglu.com/syhd142/articles/128065.htmlhttp://www.shnenglu.com/syhd142/comments/128065.htmlhttp://www.shnenglu.com/syhd142/articles/128065.html#Feedback0http://www.shnenglu.com/syhd142/comments/commentRss/128065.htmlhttp://www.shnenglu.com/syhd142/services/trackbacks/128065.html棰樻剰錛氱粰浣犱袱涓嚱鏁版按騫寵寖鍥存槸[0,10]錛屽畾涔夌涓変釜鍑芥暟鏄鍖洪棿涓婁袱涓嚱鏁扮殑鏈澶у箋傛按騫崇嚎灝辨槸絎笁涓嚱鏁扮殑鏈灝忓箋?/div>
瑙f硶錛氭帓搴忔ā鎷熷氨濂姐?/div>
#include <stdio.h>
#include 
<stdlib.h>
#include 
<algorithm>

#define N 1005

inline 
double max(double a, double b)
{
    
return a > b ? a : b;
}

struct segement
{
    
double height;
    
double start, end;
}a[N], b[N];

double step[N];

int main()
{
    
int n1, n2, n;
    
double sum;
    
while(~scanf("%d"&n1))
    {
        n 
= 1;
        sum 
= 0;
        
for(int i = 0; i < n1; i++)
        {
            scanf(
"%lf %lf"&a[i].height, &a[i].end);
            a[i].start 
= sum;
            sum 
+= a[i].end;
            a[i].end 
= sum;
            step[n
++= sum;
        }
        scanf(
"%d"&n2);
        sum 
= 0;
        
for(int i = 0; i < n2; i++)
        {
            scanf(
"%lf %lf"&b[i].height, &b[i].end);
            b[i].start 
= sum;
            sum 
+= b[i].end;
            b[i].end 
= sum;
            step[n
++= sum;
        }
        std::sort(step, step 
+ n);
        
double ans = 1e9, height1, height2;
        
for(int i = 1; i < n; i++)
        {
            
for(int j = 0; j < n1; j++)
            
if(a[j].start <= step[i - 1&& a[j].end >= step[i])
            {
                height1 
= a[j].height;
                
break;
            }
            
for(int j = 0; j < n2; j++)
            
if(b[j].start <= step[i - 1&& b[j].end >= step[i])
            {
                height2 
= b[j].height;
                
break;
            }
            
if(max(height1, height2) < ans) ans = max(height1, height2);
        }
        printf(
"%.3lf\n", ans);
    }
    
return 0;
}


Fucker 2010-09-29 16:52 鍙戣〃璇勮
]]>UVA 688 Mobile Phone Coveragehttp://www.shnenglu.com/syhd142/articles/128053.htmlFuckerFuckerWed, 29 Sep 2010 07:32:00 GMThttp://www.shnenglu.com/syhd142/articles/128053.htmlhttp://www.shnenglu.com/syhd142/comments/128053.htmlhttp://www.shnenglu.com/syhd142/articles/128053.html#Feedback0http://www.shnenglu.com/syhd142/comments/commentRss/128053.htmlhttp://www.shnenglu.com/syhd142/services/trackbacks/128053.html緇忓吀闂錛岀煩褰㈤潰縐茍銆?/span>
瑙f硶錛氫竴銆佺煩褰㈠垎鍓詫紝姣忎釜鐭╁艦鐨勪袱涓í鍧愭爣鍜屼袱涓旱鍧愭爣鎺掑簭錛岃繖鏍峰緱鍒?n*2n涓尯闂達紝瀵硅繖浜涘尯闂翠緷嬈″垽鏂槸鍚﹀寘鍚湪n涓煩褰腑闂村嵆鍙?/span>
     浜屻佹壂鎻忕嚎銆傚叿浣撹繕娌″疄鐜拌繃銆?/span>
璇﹁錛?span style="font-size: medium; ">http://www.algorithmist.com/index.php/UVa_688
#include <stdio.h>
#include 
<algorithm>

#define N 105

struct rectangle
{
    
double x, y;
    
double r;
}rec[N];

double x[2 * N], y[2 * N];

int main()
{
    
int n, cas = 1;
    
while(scanf("%d"&n), n)
    {
        
double ans = 0;
        
for(int i = 0; i < n; i++)
        {
            scanf(
"%lf %lf %lf"&rec[i].x, &rec[i].y, &rec[i].r);
            x[i] 
= rec[i].x - rec[i].r, x[i + n] = rec[i].x + rec[i].r;
            y[i] 
= rec[i].y - rec[i].r, y[i + n] = rec[i].y + rec[i].r;
        }
        std::sort(x, x 
+ 2 * n);
        std::sort(y, y 
+ 2 * n);
        
for(int i = 0; i < 2 * n - 1; i++)
        {
            
for(int j = 0; j < 2 * n - 1; j++)
            {
                
for(int k = 0; k < n; k++)
                {
                    
if(rec[k].x - rec[k].r <= x[i] && rec[k].x + rec[k].r >= x[i + 1])
                    
if(rec[k].y - rec[k].r <= y[j] && rec[k].y + rec[k].r >= y[j + 1])
                    {
                        ans 
+= (x[i + 1- x[i]) * (y[j + 1- y[j]);
                        
break;
                    }
                }
            }
        }
        printf(
"%d %.2lf\n", cas++, ans);
    }
    
return 0;
}


Fucker 2010-09-29 15:32 鍙戣〃璇勮
]]>
UVA 120 Stacks of Flapjackshttp://www.shnenglu.com/syhd142/articles/126978.htmlFuckerFuckerSat, 18 Sep 2010 04:07:00 GMThttp://www.shnenglu.com/syhd142/articles/126978.htmlhttp://www.shnenglu.com/syhd142/comments/126978.htmlhttp://www.shnenglu.com/syhd142/articles/126978.html#Feedback0http://www.shnenglu.com/syhd142/comments/commentRss/126978.htmlhttp://www.shnenglu.com/syhd142/services/trackbacks/126978.html渚濇鎵炬渶澶х殑鐑欓ゼ錛屽茍緲繪粴鏀懼叆閫傚綋浣嶇疆錛屾瘡涓儥楗兼渶澶?嬈″嵆鍙斁濂姐傜洿鎺ユā鎷熷氨濂戒簡銆?/div>
鎬濇兂鏈変簡錛岀敤浠g爜瀹炵幇榪樿鎯沖ソ涔呫傘?/div>
#include <stdio.h>
#include 
<string.h>
#include 
<algorithm>

int a[35], b[35], c[35];

int main()
{
//    freopen("in", "r", stdin);
    char data[1000];
    
int n;
    
while(gets(data))
    {
        puts(data);
        
char *= strtok(data, " ");
        n 
= 0;
        
while(p)
        {
            sscanf(p, 
"%d"&a[++n]);
            b[n] 
= a[n];
            p 
= strtok(NULL, " ");
        }
        std::sort(b 
+ 1, b + n + 1);
        
for(int i = n; i; i--)
        {
            
for(int j = 1; j <= i; j++)
            {
                
if(b[i] == a[j] && i != j)
                {
                    
if(j == 1) printf("%d ", n - i + 1);
                    
else printf("%d %d ", n - j + 1, n - i + 1);
                    
int v = 0;
                    
for(int k = i; k > j; k--) c[++v] = a[k];
                    
for(int k = 1; k <= j; k++) c[++v] = a[k];
                    
for(int k = i + 1; k <= n; k++) c[++v] = a[k];
                    
for(int k = 1; k <= v; k++) a[k] = c[k];
                    
break;
                }
            }
        }
        printf(
"0\n");
    }
    
return 0;
}


Fucker 2010-09-18 12:07 鍙戣〃璇勮
]]>UVA 10041 Vito's Familyhttp://www.shnenglu.com/syhd142/articles/118935.htmlFuckerFuckerTue, 29 Jun 2010 11:24:00 GMThttp://www.shnenglu.com/syhd142/articles/118935.htmlhttp://www.shnenglu.com/syhd142/comments/118935.htmlhttp://www.shnenglu.com/syhd142/articles/118935.html#Feedback0http://www.shnenglu.com/syhd142/comments/commentRss/118935.htmlhttp://www.shnenglu.com/syhd142/services/trackbacks/118935.html鑳藉湪姘翠竴鐐逛箞銆傘傘?/div>
#include <stdio.h>
#include 
<algorithm>

#define N 505
int a[N];

int main()
{
    
int t, n, mid, sum, tmp;
    scanf(
"%d"&t);
    
while(t--)
    {
        scanf(
"%d"&n);
        
for(int i = 0; i < n; i++)
            scanf(
"%d"&a[i]);
        std::sort(a, a 
+ n);
        mid 
= n >> 1;
        tmp 
= a[mid];
        sum 
= 0;
        
for(int i = 0; i < n; i++)
            sum 
+= abs(a[i] - tmp);
        printf(
"%d\n", sum);
    }
    
return 0;
}


Fucker 2010-06-29 19:24 鍙戣〃璇勮
]]>
中文字幕久久亚洲一区| 久久亚洲私人国产精品vA | 久久精品国产一区二区三区| 精品久久777| 久久精品18| 午夜天堂精品久久久久| 国产一级持黄大片99久久| 伊人久久亚洲综合影院| 国内精品久久人妻互换| 深夜久久AAAAA级毛片免费看| 亚洲精品无码久久久久sm| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 久久久久亚洲AV成人网| 久久久久久久亚洲Av无码| 欧美大战日韩91综合一区婷婷久久青草| 精品久久久久久久久免费影院| 久久天堂电影网| 婷婷久久香蕉五月综合加勒比| 99久久精品免费看国产| 久久午夜无码鲁丝片| 国产一区二区久久久| 久久久久无码中| 91精品国产色综久久 | 国产农村妇女毛片精品久久| 性高湖久久久久久久久| 欧美日韩久久中文字幕| 久久国产精品二国产精品| 久久久久久久99精品免费观看| 久久精品国产久精国产一老狼| 久久久无码精品午夜| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 亚洲午夜久久久久妓女影院| 欧美久久久久久| 久久男人AV资源网站| 久久精品一区二区影院| 国内精品伊人久久久久网站| 99久久国产热无码精品免费久久久久 | 无码人妻久久一区二区三区免费| 亚洲国产成人精品久久久国产成人一区二区三区综 | 亚洲国产成人久久精品动漫| 国产一区二区三区久久精品|