{"id":690,"date":"2021-01-31T00:17:06","date_gmt":"2021-01-30T15:17:06","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=690"},"modified":"2021-02-01T23:18:36","modified_gmt":"2021-02-01T14:18:36","slug":"2021-1-30%e5%9c%9f","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2021-1-30%e5%9c%9f\/","title":{"rendered":"2021\/1\/30(\u571f)"},"content":{"rendered":"\n<p>\u96d1\u8ac7\u3057\u3066\u3044\u305f\u5927\u5b66\u306e\u5f8c\u8f29\u304b\u3089\u604b\u611b\u8a71\u3092\u6301\u3061\u304b\u3051\u3089\u308c\u305f\u306e\u3067\u3001\u5484\u55df\u306b\u7537\u5973\u95a2\u4fc2\u306a\u3044\u4eba\u9593\u306e\u4ea4\u969b\u4ea4\u53cb\u95a2\u4fc2\u4e00\u822c\u306b\u8a00\u3048\u308b\u8a71\u3092\u932c\u6210\u3057\u305f\u3002\u4e00\u822c\u8ad6\u597d\u304d\u504f\u5c48\u304f\u305d\u91ce\u90ce\u3068\u3057\u3066\u306a\u304b\u306a\u304b\u7406\u60f3\u7684\u306a\u30e0\u30fc\u30d6\u3060\u3063\u305f\u3068\u601d\u3046\u3002(\u4f55\u304c\uff1f)<\/p>\n\n\n\n<p>\u53c2\u8003\u7a0b\u5ea6\u306b\u30e1\u30e2\u3063\u3066\u304a\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a71\u3092\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5f37\u5236\u529b\u304c\u7121\u3044\u3068\u95a2\u4fc2\u306e\u306a\u3044\u4eba\u540c\u58eb\u306f\u95a2\u308f\u308a\u59cb\u3081\u306b\u304f\u3044\u3002\u8ab0\u304b\u306b\u58f0\u3092\u304b\u3051\u3066\u3044\u304f\u30bf\u30a4\u30d7\u306e\u4eba\u306f\u305d\u3046\u591a\u304f\u306a\u3044\u3002<\/li><li>\u307f\u3093\u306a\u4eba\u9593\u95a2\u4fc2\u306b\u305d\u308c\u306a\u308a\u98e2\u3048\u3066\u3044\u308b\u3002\u7279\u306b\u6700\u8fd1\u306f\u611f\u67d3\u75c7\u5bfe\u7b56\u3067\u5916\u306b\u3042\u307e\u308a\u51fa\u306a\u3044\u305f\u3081\u3002<\/li><li>\u4f55\u3060\u304b\u3093\u3060\u307f\u3093\u306a\u8ab0\u304b\u304b\u3089\u58f0\u304c\u304b\u304b\u308b\u306e\u3092\u5f85\u3063\u3066\u3044\u308b\u3002<ul><li>\u306a\u306e\u3067\u8ad6\u7406\u7684\u5e30\u7d50\u3068\u3057\u3066\u306f\u3001\u610f\u5916\u3068\u8ab0\u306b\u58f0\u3092\u304b\u3051\u3066\u3082\u305d\u3046\u62d2\u307e\u308c\u306a\u3044\u3002\u4eba\u306f\u3082\u3063\u3068\u7a4d\u6975\u7684\u306b\u81ea\u5206\u304b\u3089\u4ed6\u4eba\u306b\u95a2\u308f\u3063\u3066\u3044\u304f\u3079\u304d\u3067\u3042\u308b\u3002<\/li><li>\u305f\u3060\u3057\u3001\u305d\u306e\u3053\u3068\u3092\u81ea\u5206\u304c(\u8ad6\u7406\u3060\u3051\u3067\u306a\u304f)\u6c17\u6301\u3061\u306e\u4e0a\u3067\u7d0d\u5f97\u3057\u3066\u3044\u306a\u3044\u3068\u4ed6\u4eba\u306b\u58f0\u3092\u304b\u3051\u308b\u3053\u3068\u306f\u96e3\u3057\u3044\u3002<\/li><li>\u4ed6\u4eba\u306b\u58f0\u3092\u304b\u3051\u3066\u3082\u62d2\u307e\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u6c17\u6301\u3061\u306e\u4e0a\u3067\u306e\u7d0d\u5f97\u306f\u4eba\u9593\u95a2\u4fc2\u304b\u3089\u80b2\u307e\u308c\u308b\u3068\u8003\u3048\u3089\u308c\u308b\u304c\u3001\u305d\u308c\u3092\u4f5c\u308b\u306b\u306f\u3064\u307e\u308a\u4ed6\u4eba\u306b\u58f0\u3092\u304b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u306b\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u304c\u3042\u308b\u3002<\/li><li>\u3053\u306e\u300c\u4ed6\u4eba\u306b\u58f0\u3092\u304b\u3051\u3066\u3082\u62d2\u307e\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u6c17\u6301\u3061\u306e\u4e0a\u3067\u306e\u7d0d\u5f97\u300d\u306f\u8981\u3059\u308b\u306b\u81ea\u4fe1\u306e\u3053\u3068\u3060\u306d<\/li><li>\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3092\u6253\u3061\u7834\u308b\u306b\u306f\u3069\u3053\u304b\u3057\u3089\u306e\u6642\u70b9\u3067\u9811\u5f35\u3063\u3066\u4ed6\u4eba\u306b\u58f0\u3092\u304b\u3051\u308b\u3057\u304b\u306a\u3044\u304c\u3001\u305d\u308c\u306f\u96e3\u3057\u3044\u3002\u30b7\u30b9\u30c6\u30e0\u7684\u306b\u89e3\u6c7a\u51fa\u6765\u308c\u3070\u3044\u3044\u306e\u3060\u304c\u3002<\/li><\/ul><\/li><li>\u5c0f\u4e2d\u9ad8\u306e\u5b66\u6821\u3067\u306f\u300c\u6559\u5ba4\u300d\u3068\u3044\u3046\u5f37\u5236\u529b\u304c\u3042\u3063\u305f\u305f\u3081\u3001\u4eba\u9593\u95a2\u4fc2\u304c\u4f5c\u3089\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u3063\u305f\u3002\u5927\u5b66\u306b\u306f\u56fa\u5b9a\u3055\u308c\u305f\u6559\u5ba4\u306f\u7121\u3044\u305f\u3081\u305d\u3046\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u304c\u306a\u304f\u53cb\u4eba\u77e5\u4eba\u304c\u51fa\u6765\u306b\u304f\u3044\u3002\u307e\u305f\u3001\u6614\u306e\u6642\u4ee3\u306e\u4ea4\u969b\u306b\u306f\u300c\u304a\u898b\u5408\u3044\u300d\u3068\u3044\u3046\u5f37\u5236\u529b\u304c\u3042\u3063\u305f\u304c\u3001\u73fe\u4ee3\u306f\u81ea\u7531\u604b\u611b\u81f3\u4e0a\u4e3b\u7fa9\u304c\u5f37\u3044\u306e\u3067\u305d\u3046\u3044\u3046\u306e\u304c\u8584\u3044\u3002\u3053\u3053\u3067\u3082\u4f3c\u305f\u3088\u3046\u306a\u3053\u3068\u304c\u8d77\u304d\u3066\u3044\u308b\u3002<ul><li>\u3082\u3061\u308d\u3093\u3053\u3046\u3057\u305f\u5f37\u5236\u529b\u306b\u306f\u826f\u304f\u306a\u3044\u70b9\u3082\u591a\u3044\u304c\u3001\u305d\u308c\u304c\u306a\u3044\u3068\u751f\u307e\u308c\u306a\u3044\u95a2\u4fc2\u3068\u3044\u3046\u306e\u306f\u9593\u9055\u3044\u306a\u304f\u3042\u308b\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>\u300c\u8ab0\u304b\u304b\u3089\u58f0\u304c\u304b\u304b\u308b\u306e\u3092\u5f85\u3063\u3066\u3044\u308b\u300d\u4eba\u306e\u5272\u5408\u304c\u591a\u3044\u306e\u306f\u6587\u5316\u570f\u306b\u4f9d\u308b\u3068\u3053\u308d\u304c\u5927\u304d\u3044\u304b\u3082\u5206\u304b\u3089\u3093\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u663c\u304b\u3089\u5915\u65b9\u306b\u304b\u3051\u3066\u5bdd\u305f\u3002\u306a\u3093\u3060\u304b\u3068\u3066\u3082\u982d\u304c\u3059\u3063\u304d\u308a\u3057\u305f\u3051\u3069\u982d\u304c\u75db\u3044\u3002\u3053\u306e\u3068\u3053\u308d\u7761\u7720\u524d\u5f8c\u306a\u3069\u3067\u982d\u75db\u304c\u3059\u308b\u3002\u98a8\u90aa\u4e91\u3005\u3068\u3044\u3046\u3088\u308a\u306f\u60aa\u3044\u751f\u6d3b\u7fd2\u6163\u306b\u8d77\u56e0\u3057\u3066\u3044\u308b\u6c17\u304c\u3059\u308b\u304c\u3002\u4f55\u4e8b\u3082\u307e\u307e\u306a\u3089\u3093\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u30e1\u30a4\u30c9\u30a4\u30f3\u30a2\u30d3\u30b9\u306e6\u5dfb\u3068\u9b3c\u6ec5\u306e\u5203\u306e4\u5dfb\u3092\u8cb7\u3063\u305f\u3002\u307e\u3060\u8aad\u3093\u3067\u30ca\u30c3\u30b7\u30f3\u30b0<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4e45\u3005\u306b\u5fc5\u8981\u306b\u306a\u3063\u305f\u305f\u3081Laravel\u3092\u3044\u3058\u3063\u3066\u3044\u305f\u3002laravel-form-builder\u306e\u4f7f\u3044\u52dd\u624b\u3068\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30af\u30aa\u30ea\u30c6\u30a3\u304c\u60aa\u3044\u3002\u81ea\u529b\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308b\u3088\u308a\u3046\u3093\u767e\u500d\u30de\u30b7\u306a\u306e\u3067\u4f7f\u3063\u3066\u3044\u308b\u304c\u3002<\/p>\n\n\n\n<p>Laravel\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308d\u3046\u3068\u601d\u3063\u305f\u3089\u3001\u8271\u96e3\u52b4\u82e6\u306b\u8010\u3048\u3066\u81ea\u529b\u3067HTML\u306a\u3069\u3092\u66f8\u304f\u304b\u3001\u3082\u3057\u304f\u306f\u65b0\u3057\u3044Laravel\u3082\u65b0\u3057\u3044bootstrap\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u306a\u3044\u3068\u958b\u304d\u76f4\u3063\u3066\u3044\u308b\u306e\u306b\u591a\u304f\u306e\u4eba\u304c\u4f7f\u3063\u3066\u3044\u308b\u304b\u3089\u3068\u8a00\u3046\u3060\u3051\u306e\u7406\u7531\u3067\u4f7f\u308f\u308c\u7d9a\u3051\u3066\u3044\u308bkris\/laravel-form-builder\u3092\u4f7f\u3046\u3057\u304b\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u78ba\u304b\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3064\u3082\u308a\u306e\u4f3c\u305f\u3088\u3046\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u3093\u3060\u3051\u3069\u3042\u307e\u308a\u30b5\u30dd\u30fc\u30bf\u30fc\u304c\u3044\u306a\u304f\u3066\u4e0d\u5b89\u306a\u3093\u3088\u306d\u3001\u6298\u89d2OSS\u306a\u3093\u3060\u304b\u3089\u304a\u524d\u3082\u30b5\u30dd\u30fc\u30c8\u3059\u308c\u3070\u3044\u3044\u3060\u308d\u3063\u3066\u8a71\u3060\u3051\u3069<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4e45\u3057\u3076\u308a\u306bABC\u306b\u53c2\u52a0\u3057\u305f\u3002ABC190,\u5168\u5b8c\u3057\u3066\u9ec4\u30d1\u30d5\u30a9\u3002Highest\u66f4\u65b0\uff01<\/p>\n\n\n\n<p>\u3057\u3070\u3089\u304f\u7af6\u30d7\u30ed\u4f11\u3080\u3068\u30ec\u30fc\u30c8\u4e0a\u304c\u308b\u8aac\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3002\u30c1\u30e7\u30c3\u30d1\u56de\u8def\u304b\u4f55\u304b\uff1f<\/p>\n\n\n\n<p>\u3053\u306eF\u30924\u6841\u4eba\u304c\u89e3\u304f\u306e\u306f\u6016\u3044\u3002\u305d\u3093\u3067\u3082\u3063\u3066E\u304c\u305d\u3053\u307e\u3067\u89e3\u304b\u308c\u306a\u3044\u306e\u306f\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u3002\u307e\u3042\u3081\u3093\u3069\u304f\u3055\u3044\u554f\u984c\u3068\u8a00\u308f\u308c\u308c\u3070\u305d\u308c\u306f\u3001\u305d\u3046\u3002<\/p>\n\n\n\n<p>\u8ee2\u5012\u6570\u3092\u6c42\u3081\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u5316\u3057\u305f\u3002\u4f8b\u306b\u3088\u3063\u3066\u914d\u5217\u3067\u306a\u304f\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u6e21\u3059\u5b9f\u88c5\u3002\u3055\u3089\u306b\u30c7\u30fc\u30bf\u578b\u304c\u6570\u5024\u3067\u306a\u304f\u3066\u3082\u6bd4\u8f03\u6f14\u7b97\u5b50\u3055\u3048\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308c\u3070\u52d5\u304f\u5b9f\u88c5\u306b\u3057\u305f\u3002\u4e00\u822c\u5316\u306f\u6b63\u7fa9\uff01\u65b9\u91dd\u3068\u3057\u3066\u306f\u30bd\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u5927\u5c0f\u95a2\u4fc2\u3092\u305f\u3060\u306e\u6574\u6570\u5024\u306b\u76f4\u3057\u305f\u3042\u3068\u666e\u901a\u306bBIT\u4f7f\u3063\u3066O(NlogN)\u3067\u8ee2\u5012\u6570\u6570\u3048\u3066\u3044\u304f\u65b9\u91dd\u3067\u3002<\/p>\n\n\n\n<p>\u666e\u901a\u306e\u6570\u5217\u306e\u8ee2\u5012\u6570\u3092\u6c42\u3081\u308b\u5834\u5408\u4e8c\u5ea6\u624b\u9593\u306a\u6c17\u3082\u3059\u308b\u304c\u3001\u5ea7\u6a19\u5727\u7e2e\u7684\u306a\u610f\u7fa9\u3082\u3042\u308b\u306e\u3067\u7121\u99c4\u3067\u3082\u306a\u3044\u3002\u7d50\u5c40\u3053\u308c\u3067\u8a08\u7b97\u91cf\u30aa\u30fc\u30c0\u30fc\u306f\u5909\u308f\u3089\u306a\u3044\u3057\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>template&lt;class It&gt;\nlint inversion(It begin, It end) {\n\tvect&lt;It&gt; itarr;\n\tfor (It it = begin; it != end; it++)\n\t\titarr.push_back(it);\n\tlint n = itarr.size();\n\tvec v(n);\n\tiota(all(v), 0);\n\tsort(all(v), &#91;&amp;](lint a, lint b) { return *itarr&#91;a] &lt; *itarr&#91;b]; });\n\tBIT&lt;lint&gt; tr(n);\n\tlint c = 0;\n\trep(i, n) {\n\t\tc += tr.query(v&#91;i], n);\n\t\ttr.add(v&#91;i], 1);\n\t}\n\treturn c;\n}<\/code><\/pre>\n\n\n\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30c6\u30b9\u30c8\u4e2d\u3001\u6050\u308d\u3057\u3044\u3053\u3068\u306b\u624b\u5143\u306eBIT\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u30d0\u30b0\u304c\u3042\u308b\u3053\u3068\u304c\u767a\u899a\u3057\u305f\u3002\u591a\u5206\u30b3\u30fc\u30c9\u3092\u6700\u5f8c\u306b\u6539\u826f\u3057\u305f\u5f8c\u30c6\u30b9\u30c8\u3057\u3066\u306a\u304b\u3063\u305f\u3089\u3057\u3044\u3002\u3053\u3048\u3048\u30fc\u3002\u3061\u3083\u3093\u3068\u76f4\u3057\u305f\u3002\u6c17\u4ed8\u3044\u3066\u3088\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u7b4b\u8089\u4f53\u64cd\u3092\u3084\u3063\u305f\u3002\u30a4\u30f3\u30bf\u30fc\u30df\u30c3\u30c6\u30f3\u30c8\u30fb\u30cf\u30a4\u30b9\u30d4\u30fc\u30c9\u30d7\u30c3\u30b7\u30e5\u30a2\u30c3\u30d7\u304c\u3059\u3054\u3044\u304d\u3064\u3044\u3002\u80f8\u307e\u3067\u5e8a\u306b\u4ed8\u3051\u3066\u8ffd\u3044\u3064\u3051\u308b\u304b\u3063\u3066\u306e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96d1\u8ac7\u3057\u3066\u3044\u305f\u5927\u5b66\u306e\u5f8c\u8f29\u304b\u3089\u604b\u611b\u8a71\u3092\u6301\u3061\u304b\u3051\u3089\u308c\u305f\u306e\u3067\u3001\u5484\u55df\u306b\u7537\u5973\u95a2\u4fc2\u306a\u3044\u4eba\u9593\u306e\u4ea4\u969b\u4ea4\u53cb\u95a2\u4fc2\u4e00\u822c\u306b\u8a00\u3048\u308b\u8a71\u3092\u932c\u6210\u3057\u305f\u3002\u4e00\u822c\u8ad6\u597d\u304d\u504f\u5c48\u304f\u305d\u91ce\u90ce\u3068\u3057\u3066\u306a\u304b\u306a\u304b\u7406\u60f3\u7684\u306a\u30e0\u30fc\u30d6\u3060\u3063\u305f\u3068\u601d\u3046\u3002(\u4f55\u304c\uff1f) \u53c2\u8003\u7a0b\u5ea6\u306b\u30e1\u30e2\u3063\u3066\u304a\u304f\u3068\u4ee5\u4e0b &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2021-1-30%e5%9c%9f\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2021\/1\/30(\u571f)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":7,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":700,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/690\/revisions\/700"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}