パスカルの三角形の n 段目(0-origin)を求める。
def pascal(n: Int): IndexedSeq[Int] = { val pre = if(n == 0) IndexedSeq(1) else pascal(n - 1) for((x,y) <- (0 +: pre) zip (pre :+ 0)) yield x+y }
月 | 火 | 水 | 木 | 金 | 土 | 日 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
パスカルの三角形の n 段目(0-origin)を求める。
def pascal(n: Int): IndexedSeq[Int] = { val pre = if(n == 0) IndexedSeq(1) else pascal(n - 1) for((x,y) <- (0 +: pre) zip (pre :+ 0)) yield x+y }
Tags:
仕事なくなりました。駆け出しですが、Web 系の SE をやっていました。仕事ください。。。
mixiともう一つ別のところで書いてた日記をインポートしたので、公にするような内容でないものが含まれている可能性が十分にあります。
何かまずいエントリを見つけてしまった場合は、非公開にしたいのでこっそり教えてくださいw
「おかえりんこ♪」の言葉につい反応してしまった後に気がついて、俯き加減の真っ赤な顔でバカって言ってくれるお嫁さんが理想です。リア充爆散しろや!
© 2002–2011 からだのブログ — Sitemap — Cutline by Chris Pearson
Pioneer new sound frontiers with Sprunki – pure musical freedom.
Digital beat revolution! Sprunki transforms casual users into producers. The Spunky Game mod’s integration of street art with beat generation shows urban cultural coding!
Interesting read! Seeing platforms like Filbet prioritize a diverse game portfolio (slots, live casino) with high RTP rates (95.5%-98.2%) is key for player trust. Is filbet legit in terms of fair play & security? Seems promising for the Philippine market.
Interesting analysis! Strategic play is key, and platforms like phdream 11 game really emphasize that-KYC is smart for high-limit players. Mastering the odds is everything, right? Solid insights here!
Trying JiliOK feels like stepping into a high-stakes concert of gaming-every detail is finely tuned. The AI-driven gameplay is a standout, and the variety keeps you coming back. Check out the JiliOK Download to experience it yourself!