文章已搬家,請點擊前往👈

 

 

 

 

路徑:Tournament \ 1-16 \ 1 - Inv 2001 R1 \ HowEasy

分數:250

題目

程式介面

Class Name: HowEasy
Method Name: pointVal
Parameters: String
Returns: int

說明

TopCoder的題目依難度有三種分數,現在想要撰寫一個程式,能夠依據題目的描述的平均字長(Average Word Length)來決定分數:

  1. 平均字長小於等於3為250分。
  2. 平均字長4或5為500分。
  3. 平均字長大於等於6為1000分。
arrow
arrow
    文章標籤
    TopCoder HowEasy C#
    全站熱搜

    emn178 發表在 痞客邦 留言(0) 人氣()