{"provider_name":"Hatena Blog","width":"100%","published":"2014-09-09 22:49:41","blog_url":"https://logfiles.hatenablog.com/","title":"AOJ2301 Sleeping Time","description":"\u89e3\u7b54 K = 30 \u307e\u3067\u3067 O(2^K) \u306a\u306e\u3067\u3001\u591a\u5c11\u679d\u5208\u308a\u3059\u308c\u3070\u901a\u308b\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u304c TLE \u304c\u306a\u304b\u306a\u304b\u53d6\u308c\u306a\u304b\u3063\u305f\u3002\u6c7a\u3081\u624b\u306f solve() \u95a2\u6570\u5185\u306e 2\u884c\u76ee\u306e\u679d\u5208\u308a\u3002\u6761\u4ef6\u5f0f\u3092\u6e80\u305f\u3059\u3068\u304d\u4eca\u306e\u78ba\u7387\u3092 P\u500d \u3068 (1-P)\u500d \u306b\u5206\u5272\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b\u3002\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3042\u308b\u6761\u4ef6\u5f0f\u306f\u3001\u679d\u5208\u308a\u3067\u82e6\u60a9\u3057\u305f\u8ecc\u8de1\u3002\u78ba\u7387\u304c 0 \u306b\u8fd1\u304f\u306a\u308c\u3070\u5f3e\u304f\u3068\u3044\u3046\u8003\u3048\u3070\u304b\u308a\u304c\u982d\u3092\u8d70\u3063\u3066\u3044\u305f\u3002 #include <iostream> #include <algorithm> #include <vector> #include <cstdio> #include <cmath> using namespace std\u2026","categories":["AOJ"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140909%2F1410270581\" title=\"AOJ2301 Sleeping Time - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_url":"https://blog.hatena.ne.jp/moistx/","image_url":null,"height":"190","url":"https://logfiles.hatenablog.com/entry/20140909/1410270581","author_name":"moistx","blog_title":"Logfiles","type":"rich","provider_url":"https://hatena.blog"}