年と月を考えて、その月の就業日の割合を調べます。稼働日は、月曜日から金曜日で、休日やその他の特別なことは考慮されません。グレゴリオ暦が使用されます。
入力
ISO 8601形式の年と月(YYYY-MM)。年は常に4桁、月は常に2桁です。指定された年は1582年より前ではありません。
出力
出力は、整数に丸められた、指定された月の就業日(上記の定義による)のパーセンテージです。パーセント記号や小数桁は続きません。
サンプル1
Input Output
2010-05 68
サンプル2
Input Output
2010-06 73
サンプル3
Input Output
1920-10 68
サンプル4
Input Output
2817-12 68
1週間が経過し、回答が受け入れられました。好奇心旺盛な方のために、コンテストで私たちが受け取った提出物のサイズ:
129 – Zシェル
174 – VB.NET
222 – C
233 – C
300 – C
独自の(ランク付けされていない)ソリューションと同様に:
75 – PowerShell
93 – Ruby
112 – Bourneシェル
echo 100