hlg1175小陳老師 桌子 盤子 計算幾何

2021-07-02 01:32:26 字數 831 閱讀 9195

大意:乙個r的桌子能否擺下n個半徑為r的盤子  要求所有的盤子靠桌子的邊緣放置

分析:兩種思路 

一種是看這個桌子放這種盤子最多放多少個

一種是把這種盤子n個放在這個桌子上最少需要多大桌子半徑

**:

1 #include 2 #include 3 #include 4 #include 5

using

namespace

std;67

const

int maxn = 105;8

const

double pi = 3.14159265358979;9

10int eps(double

x) 15

16int

main() else

if(n == 2

) else32}

33return0;

34 }

view code

1 #include 2 #include 3 #include 4 #include 5

using

namespace

std;67

const

int maxn = 105;8

const

double pi = 3.14159265358979;9

10int eps(double

x) 15

16int

main() else

if(eps(r - r) >= 0

) else31}

32return0;

33 }

view code

HLG 菜鳥和大牛

菜鳥和大牛 time limit 1000 ms memory limit 65536 k total submit 421 197 users total accepted 208 181 users rating special judge no description blue和autoger...

索尼的hlg是什麼 索尼HLG的使用方法

hlg是nhk和bbc聯合開發的hdr的標準,向索尼 佳能 尼康 松下 富士和國產的大疆等廠商,都加入了這個標準。因為它是乙個通用的標準,它不像s log c log n log這些廠商,這些都是關起門來自己研發的標準。這些廠商拍攝的素材,要在畫面上得到統一,那是比較有難度的。然而hlg拍攝模式,能...

小樂樂大逃亡HLG

小樂樂大逃亡 time limit 1000 ms memory limit 32768 k total submit 88 44 users total accepted 47 43 users rating special judge no description 小樂樂剛裝完化妝品,突然大地搖...