锘??xml version="1.0" encoding="utf-8" standalone="yes"?>一本久道久久综合狠狠躁AV,久久夜色精品国产欧美乱,久久久精品日本一区二区三区 http://m.shnenglu.com/syhd142/category/14164.htmlzh-cnTue, 05 Oct 2010 11:56:44 GMTTue, 05 Oct 2010 11:56:44 GMT60UVA 972 Horizon Linehttp://m.shnenglu.com/syhd142/articles/128065.htmlFuckerFuckerWed, 29 Sep 2010 08:52:00 GMThttp://m.shnenglu.com/syhd142/articles/128065.htmlhttp://m.shnenglu.com/syhd142/comments/128065.htmlhttp://m.shnenglu.com/syhd142/articles/128065.html#Feedback0http://m.shnenglu.com/syhd142/comments/commentRss/128065.htmlhttp://m.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://m.shnenglu.com/syhd142/articles/128053.htmlFuckerFuckerWed, 29 Sep 2010 07:32:00 GMThttp://m.shnenglu.com/syhd142/articles/128053.htmlhttp://m.shnenglu.com/syhd142/comments/128053.htmlhttp://m.shnenglu.com/syhd142/articles/128053.html#Feedback0http://m.shnenglu.com/syhd142/comments/commentRss/128053.htmlhttp://m.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://m.shnenglu.com/syhd142/articles/126978.htmlFuckerFuckerSat, 18 Sep 2010 04:07:00 GMThttp://m.shnenglu.com/syhd142/articles/126978.htmlhttp://m.shnenglu.com/syhd142/comments/126978.htmlhttp://m.shnenglu.com/syhd142/articles/126978.html#Feedback0http://m.shnenglu.com/syhd142/comments/commentRss/126978.htmlhttp://m.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://m.shnenglu.com/syhd142/articles/118935.htmlFuckerFuckerTue, 29 Jun 2010 11:24:00 GMThttp://m.shnenglu.com/syhd142/articles/118935.htmlhttp://m.shnenglu.com/syhd142/comments/118935.htmlhttp://m.shnenglu.com/syhd142/articles/118935.html#Feedback0http://m.shnenglu.com/syhd142/comments/commentRss/118935.htmlhttp://m.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 鍙戣〃璇勮
]]>
狠狠人妻久久久久久综合蜜桃| 国产福利电影一区二区三区久久老子无码午夜伦不 | 欧美久久久久久| 无码人妻久久一区二区三区| 久久人人爽人人爽人人片av高请| 热re99久久6国产精品免费| 国产精品对白刺激久久久| 久久精品亚洲福利| 人妻久久久一区二区三区| 国产精品狼人久久久久影院 | 伊人久久亚洲综合影院| 久久久久亚洲AV片无码下载蜜桃| 日韩欧美亚洲综合久久影院d3| 久久久久97国产精华液好用吗| 久久精品国产色蜜蜜麻豆| 久久精品国产亚洲麻豆| 久久亚洲日韩看片无码| 9999国产精品欧美久久久久久| 热99RE久久精品这里都是精品免费 | 久久中文字幕视频、最近更新| 久久婷婷五月综合97色一本一本 | 欧美亚洲日本久久精品| 青青草国产成人久久91网| 色欲综合久久躁天天躁蜜桃| 久久久WWW成人免费精品| 国产精品一久久香蕉产线看| 日韩精品久久久久久免费| 久久久精品久久久久影院| 久久国产午夜精品一区二区三区| 99精品国产在热久久无毒不卡| 三上悠亚久久精品| 亚洲女久久久噜噜噜熟女| 久久亚洲精品无码aⅴ大香| 狠狠色丁香婷婷久久综合五月| 亚洲精品无码久久久久AV麻豆| 久久久黄片| 欧美日韩成人精品久久久免费看| 精品无码久久久久久久动漫| 久久精品国产精品亚洲| 久久久久18| 免费无码国产欧美久久18|