{"id":6182,"date":"2018-04-20T09:44:49","date_gmt":"2018-04-20T00:44:49","guid":{"rendered":"https:\/\/sinsei.space\/blog\/?p=6182"},"modified":"2018-06-26T09:42:30","modified_gmt":"2018-06-26T00:42:30","slug":"%e3%82%b9%e3%83%a9%e3%83%b3%e3%83%97%e3%81%8c%e7%b6%9a%e3%81%84%e3%81%a6%e3%82%8b%e3%82%88","status":"publish","type":"post","link":"https:\/\/sinsei.space\/blog\/6182","title":{"rendered":"\u30b9\u30e9\u30f3\u30d7\u304c\u7d9a\u3044\u3066\u308b\u3088"},"content":{"rendered":"<p><font size=4><br \/>\n2018\u5e74 4\u670820\u65e5<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307e\u3060\u9023\u65e5\u30b9\u30e9\u30f3\u30d7\u304c\u7d9a\u3044\u3066\u3044\u3066\u307b\u3068\u3093\u3069\u9032\u3093\u3067\u7121\u3044\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<!--more--><br \/>\n\u3000\u3042\u308c\u304b\u3089\u51fa\u6765\u305f\u306e\u3068\u8a00\u3048\u3070\u3001\u52e2\u529b\u306e\u30e6\u30cb\u30c3\u30c8\u3092\u80fd\u529b\u3054\u3068\u306b\u5927\u304d\u3044\u9806\u306e\u9806\u5217\u306b\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3068<\/p>\n<pre class=\"lang:hsp decode:true \" >#deffunc hmf_set int hmf_setn ; \u56fd\u306e\u90e8\u968a\u914d\u7f6e\r\n\r\n\tno0=0\t\t; \u6700\u9ad8\u5e73\u5747\u5024\u3001\u9996\u9818\r\n\tdim no1,pub ; STR\u3001\u4e00\u5217\r\n\tdim no2,pub ; STR+MAG\u3001\u4e8c\u5217\r\n\tdim no3,pub ; MAG\u3001\u4e09\u5217\r\n\r\n\tpug=(hmf_setn-1)*pub+1 ; \u30c7\u30fc\u30bf\u5148\u982d\r\n\trepeat pub,pug ; \u9806\u5217\r\n\t un=pud(cnt) : udg=un*udb\r\n\t  if un=0  : continue\t; \u7121\u3044\r\n\t  if un=-1 : break\t\t; \u7d42\u7aef\r\n\r\n\t n0=un(udg+1)+un(udg+2)+un(udg+3)+un(udg+4) ; \u7dcf\u529b\r\n\t n1=un(udg+1)\t\t\t; \u7b4b\u529b\r\n\t n2=un(udg+1)+un(udg+2)\t; \u7b4b\u529b+\u9b54\u529b\r\n\t n3=un(udg+2)\t\t\t; \u9b54\u529b\r\n\r\n\t if no0&lt;n1 : no0=n1\t\t; \u7dcf\u529b\u306e\u9806\u5217\r\n\r\n\t if no1(cnt)=0 : no1(cnt)=n1 ; \u7b4b\u529b\u306e\u9806\u5217\r\n\t if no1(cnt)&lt;n1 : n=no1(cnt) : no1(cnt)=n1 : n1=n ; \u5165\u308c\u66ff\u3048\r\n\r\n\t if no2(cnt)=0 : no2(cnt)=n2 ; \u7b4b\u529b+\u9b54\u529b\u306e\u9806\u5217\r\n\t if no2(cnt)&lt;n2 : n=no2(cnt) : no2(cnt)=n2 : n2=n ; \u5165\u308c\u66ff\u3048\r\n\r\n\t if no3(cnt)=0 : no3(cnt)=n3 ; \u9b54\u529b\u306e\u9806\u5217\r\n\t if no3(cnt)&lt;n3 : n=no3(cnt) : no3(cnt)=n3 : n3=n ; \u5165\u308c\u66ff\u3048\r\n\tloop\r\n\r\n\treturn<\/pre>\n<p><strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u305d\u306e\u9806\u5217\u304b\u3089\u9078\u629e\u3057\u305f\u30e6\u30cb\u30c3\u30c8 No.\u3092\u6d88\u3059\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:hsp decode:true \" >#deffunc mfn_del int mfn_delf,int mfn_deln ; \u9806\u5217\u306e\u6d88\u53bb\r\n\r\n\tn=mfn_deln\t\t\t\t; \u30e6\u30cb\u30c3\u30c8Np.\r\n\r\n\tif mfn_delf=1 : c=pug\t; \u30d2\u30fc\u30ed\u30fc\r\n\tif mfn_delf=2 : c=10\t; \u4e2d\u7acb\r\n\r\n\r\n\tif no0=n : no0=0\t\t; \u7dcf\u529b\r\n\r\n\trepeat c\t\t\t\t; \u7b4b\u529b\r\n\t if no1(cnt)=n : no1(cnt)=0 : break\r\n\tloop\r\n\trepeat c\t\t\t\t; \u7b4b\u529b*\u9b54\u529b\r\n\t if no2(cnt)=n : no2(cnt)=0 : break\r\n\tloop\r\n\trepeat c\t\t\t\t; \u9b54\u529b\r\n\t if no3(cnt)=n : no3(cnt)=0 : break\r\n\tloop\r\n\r\n\treturn<\/pre>\n<p>\u3000\u305d\u308c\u3060\u3051\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307e\u305a\u8003\u3048\u305f\u8981\u7d20\u3068\u8a00\u3048\u3070\u3001\u4e00\u3064\u306e\u52e2\u529b\u306e\u30e6\u30cb\u30c3\u30c8\u3084\u30a2\u30a4\u30c6\u30e0\u6570\u306e\u4e0a\u9650\u3092\u3069\u3046\u3059\u308b\u304b\u3002<\/p>\n<p>\u3000\u306a\u305c\u304b\u3068\u8a00\u3048\u3070\u3001\u6ca2\u5c71\u8a2d\u5b9a\u3059\u308b\u3068\u30e1\u30e2\u30ea\u3092\u98df\u3046\u304b\u3089\u3002<\/p>\n<p>\u300025\u52e2\u529b\u3042\u3063\u305f\u3068\u3057\u3066\u30011\u56fd\u6700\u5927 500\u30e6\u30cb\u30c3\u30c8\u3060\u3068\u3057\u3066\u3082 12500\u3060\u304b\u3089\u300112MB\uff1f<\/p>\n<p>\u3000\u3082\u3057 500\u30e6\u30cb\u30c3\u30c8\u306e\u4e00\u3064 7\u30a2\u30a4\u30c6\u30e0\u306a\u3089\u30a2\u30a4\u30c6\u30e0\u3060\u3051\u3067 87500\u300187MB?<\/p>\n<p> \u307e\u3042\u73fe\u5728\u306e\u30b9\u30de\u30db\u306a\u3089 4GB\u7a0b\u30e1\u30e2\u30ea\u304c\u3042\u308b\u306e\u3060\u308d\u3046\u3057\u3001\u305d\u3082\u305d\u3082\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u3084\u97f3\u697d\u3067 50MB\u524d\u5f8c\u306f\u4f7f\u3046\u8a33\u3060\u304b\u3089\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u305d\u3093\u306a\u3067\u3082\u7121\u3044\u306e\u304b\u3082\u77e5\u308c\u306a\u3044\u3051\u3069\u3001\u3061\u3087\u3063\u3068\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u306f\u3067\u304d\u308b\u3060\u3051\u5c11\u306a\u3044\u65b9\u304c\u8272\u3005\u826f\u3044\u3068\u306f\u601d\u3046\u3002<\/p>\n<p>\u3000\u4e00\u3064\u306e\u3084\u308a\u65b9\u3068\u3057\u3066\u306f\u5168\u56fd\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u5171\u6709\u3057\u3066\u3001\u3064\u307e\u308a\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306f\u4e00\u3064\u3060\u3051\u306b\u3057\u3066\u5168\u90e8\u30672000\u30e6\u30cb\u30c3\u30c8\u307e\u3067\u3001\u3068\u3044\u3046\u98a8\u306b\u3059\u308c\u3070\u7bc0\u7d04\u3067\u304d\u308b\u3002<\/p>\n<p>\u3000\u3057\u304b\u3057\u3053\u306e\u5834\u5408\u3001\u56fd\u3054\u3068\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3001\u4e00\u52e2\u529b\u4e00\u56de\u30e6\u30cb\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u305d\u306e\u52e2\u529b\u306e\u30e6\u30cb\u30c3\u30c8\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3068\u8a00\u3046\u306e\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8907\u96d1\u306b\u306a\u308b\u306e\u3067\u81ea\u4fe1\u304c\u7121\u3044\u3002<\/p>\n<p>\u3000\u305d\u3053\u3067\u8003\u3048\u305f\u306e\u306f\u30011\u56fd\u304c\u990a\u3048\u308b\u30e6\u30cb\u30c3\u30c8\u306e\u4e0a\u9650\u3092\u539f\u5247 1\u56fd 10\u4f53\u3001\u5efa\u7269\u306e\u52b9\u679c\u3067 +10\u4f53\u3001\u6700\u5927\u898b\u8fbc\u307f\u6570 20\u4f53\u3067\u3001\u5168\u56fd 25\u30ab\u56fd\u00d720\u4f53=\u7406\u8ad6\u6700\u5927 500\u4f53\u3068\u3059\u308b\u4e8b\u3002<\/p>\n<p>\u30001\u52e2\u529b\u306e\u6700\u5927\u304c 500\u3060\u304b\u3089 \u00d725\u56fd\u3067\u300112500\u300112MB\u3002<\/p>\n<p>\u3000\u3042\u3001\u3055\u3063\u304d\u306e\u6570\u3068\u540c\u3058\u3060\u3001\u3057\u304b\u3057\u307e\u305a\u6700\u4f4e\u9650\u3053\u306e\u6570\u304b\u3089\u8003\u3048\u3066\u307f\u308b\u3002<\/p>\n<p>\u3000\u30a2\u30a4\u30c6\u30e0\u3082\u540c\u3058\u3088\u3046\u306b\u8003\u3048\u3066\u3001\u521d\u671f 1\u56fd\u306e\u6570\u306f 70+\u57ce 30\u3067 100\u3068\u3057\u3066\u3001\u5c5e\u9818\u306f\u57fa\u672c+20\u306e\u5009\u5eab\u3092\u5efa\u3066\u308b\u3068+50\u3060\u3063\u305f\u3068\u3057\u3066\u30011\u56fd\u6700\u5927+70\u306e 100+70*24\u56fd\u3060\u304b\u3089 1780\uff1f<\/p>\n<p>\u30001\u52e2\u529b\u6700\u5927 1780\u306e\u30d2\u30fc\u30ed\u30fc\u6700\u5927\u6570 25\u3067 1780\u00d725=44500\u3001\u3064\u307e\u308a 44MB\u304b\u30fb\u30fb\u30fb\u30fb\u3002<\/p>\n<p> \u305d\u308c\u304b\u3089\u4e2d\u7acb\u56fd\u306f\u4eca\u306e\u6240 1\u56fd\u3060\u3051\u3067\u653b\u3081\u8fbc\u307e\u306a\u3044\u3001\u3064\u307e\u308a\u56fd\u304c\u5897\u3048\u306a\u3044\u4e88\u5b9a\u306a\u306e\u3067\u3001\u4e2d\u7acb\u56fd\u306e\u30e6\u30cb\u30c3\u30c8\u306f\u6700\u5927\u3067 10\u4f53\u3001\u30a2\u30a4\u30c6\u30e0\u306f\u305d\u306e\u00d77\u306e 70\u304b\u3001\u307e\u3042 100\u304f\u3089\u3044\u3042\u308c\u3070\u826f\u3044\u3060\u308d\u3046\u3002<\/p>\n<p>\u3000\u3064\u307e\u308a\u7dcf\u6570\u306f \u30e6\u30cb\u30c3\u30c8\u3060\u3068\u30d2\u30fc\u30ed\u30fc\u52e2\u529b\u6570\u00d7500+\u4e2d\u7acb\u56fd\u00d710\u3001\u30a2\u30a4\u30c6\u30e0\u306f\u30d2\u30fc\u30ed\u30fc\u52e2\u529b\u6570\u00d71780+\u4e2d\u7acb\u56fd\u00d7100\u304f\u3089\u3044\u306e\u30c7\u30fc\u30bf\u6570\u3092\u7528\u610f\u3059\u308c\u3070\u826f\u3044\u304b\u306a\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u305d\u3057\u3066\u3084\u3084\u3053\u3057\u3044\u4e8b\u306b\u3001\u3053\u308c\u306f\u5404\u52e2\u529b\u306e\u6240\u6301\u3059\u308b\u30e6\u30cb\u30c3\u30c8No.\u3084\u30a2\u30a4\u30c6\u30e0No.\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u3042\u3063\u3066\u3001\u5b9f\u969b\u306e\u30e6\u30cb\u30c3\u30c8\u3084\u30a2\u30a4\u30c6\u30e0\u306e\u30c7\u30fc\u30bf\u3068\u306f\u9055\u3046\u3002<\/p>\n<p>\u3000\u5b9f\u969b\u306b\u3053\u308c\u3068\u540c\u3058\u3060\u3051\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u308b\u3068\u3001\u3055\u3089\u306b\u00d740\u3068\u304b\u00d760\u7b49\u306e\u30c7\u30fc\u30bf\u91cf\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3000\u3046\uff5e\u3080\u6d41\u77f3\u306b\u30e6\u30cb\u30c3\u30c8\u30c7\uff0d\u30bf\u3084\u30a2\u30a4\u30c6\u30e0\u30c7\u30fc\u30bf\u306f\u3001\u5168\u4f53\u3067\u7dcf\u6570 2000\u3068\u304b 3000\u3068\u304b\u306b\u3059\u308b\u3079\u304d\u3060\u308d\u3046\u304b\uff1f<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u3068\u3001\u305d\u3093\u306a\u611f\u3058\u3067\u3001\u4e00\u3064\u306b\u306f\u30de\u30c3\u30d7\u6226\u7565\u8981\u7d20\u3068\u3044\u3046\u3001\u4eca\u307e\u3067\u4f5c\u3063\u305f\u4e8b\u306e\u7121\u3044\u65b0\u3057\u3044\u8981\u7d20\u306b\u53d6\u308a\u7d44\u3093\u3067\u308b\u306e\u3067\u3001\u6bce\u5ea6\u65b0\u3057\u3044\u8981\u7d20\u306e\u6642\u306f\u6642\u9593\u3068\u6839\u6c17\u304c\u8981\u308b\u611f\u3058\u3060\u3002<\/p>\n<p>\u3000\u610f\u5916\u3068\u6226\u7565\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3082\u96e3\u3057\u3044\u611f\u3058\u3067\u3001\u4f8b\u3048\u3070\u30e6\u30cb\u30c3\u30c8\u3092\u3069\u306e\u56fd\u306b\u3069\u308c\u3060\u3051\u914d\u7f6e\u3059\u308b\u304b\u3001\u6301\u3063\u3066\u308b\u56fd\u306e\u96a3\u63a5\u3059\u308b\u52e2\u529b\u3068\u6301\u3063\u3066\u308b\u6226\u529b\u306e\u914d\u7f6e\u30d0\u30e9\u30f3\u30b9\u306f\u3069\u3046\u3059\u308b\u306e\u304b\u3001\u8db3\u308a\u306a\u3044\u5834\u5408\u306f\u3069\u3053\u304b\u3089\u512a\u5148\u3057\u3066\u7f6e\u304f\u306e\u304b\uff1f<\/p>\n<p>\u3000\u305d\u3082\u305d\u3082\u96a3\u63a5\u3057\u305f\u56fd\u3060\u3051\u306e\u6226\u529b\u8a55\u4fa1\u306a\u3089\u307e\u3060\u3057\u3082\u3001\u30de\u30c3\u30d7\u5168\u4f53\u3092\u4fef\u77b0\u3057\u305f\u6226\u7565\u3092\u3069\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u5b9f\u8df5\u3059\u308b\u306e\u304b\u3001\u30b5\u30c3\u30d1\u30ea\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>\u3000\u305d\u3082\u305d\u3082\u30b3\u30fc\u30a8\u30fc\u30b2\u30fc\u30e0\u5143\u7956\u4fe1\u9577\u306e\u91ce\u671b\u306e\u59cb\u3081\u304b\u3089\u3001\u56fd\u306e\u8a55\u4fa1\u306a\u3093\u3066\u96a3\u63a5\u610f\u5916\u3067\u5b9f\u884c\u3057\u3066\u308b\u306e\u304c\u3042\u308b\u3068\u306f\u601d\u3048\u306a\u3044\u3051\u3069\u3001\u3053\u308c\u3092\u3082\u3057\u8003\u3048\u308b\u3068\u3057\u305f\u3089\u5c06\u68cb\u306e\u624b\u3092\u8003\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3088\u3046\u306a\u8907\u96d1\u306a\u4e8b\u306b\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u3000\u305d\u308c\u304b\u3089\u6301\u3063\u3066\u308b\u30a2\u30a4\u30c6\u30e0\u3092\u3069\u306e\u30e6\u30cb\u30c3\u30c8\u306b\u88c5\u5099\u3055\u305b\u308b\u304b\u3001\u3069\u306e\u30e6\u30cb\u30c3\u30c8\u3092\u968a\u5217\u306e\u4f55\u51e6\u306b\u7f6e\u304f\u306e\u304b\u3001\u4f8b\u3048\u3070 3\u5217\u76ee\u306f\u9b54\u6cd5\u306e\u5f37\u3044\u30e6\u30cb\u30c3\u30c8\u306a\u306e\u304b\u5f13\u306e\u5f37\u3044\u30e6\u30cb\u30c3\u30c8\u306a\u306e\u304b\u3001\u305d\u306e\u512a\u5148\u9806\u4f4d\u306f\uff1f\u3001\u6b66\u5668\u306e\u5c04\u7a0b\u3082\u8003\u616e\u3057\u3066\u88c5\u5099\u3055\u305b\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3051\u3069\u3001\u8db3\u308a\u306a\u3044\u5834\u5408\u306f\u5c04\u7a0b\u306b\u6e80\u305f\u306a\u3044\u30a2\u30a4\u30c6\u30e0\u304b\u3089\u88c5\u5099\u3055\u305b\u308b\u306e\u304b\u3002<\/p>\n<p>\u3000\u3082\u308d\u3082\u308d\u306e\u8981\u7d20\u3092\u3069\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3057\u3066\u3044\u3044\u306e\u304b\u3001\u3053\u308c\u306f\u610f\u5916\u3068\u96e3\u3057\u3044\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u305d\u3093\u306a\u6240\u3092\u601d\u8003\u932f\u8aa4\u4e2d\u3001\u3064\u307e\u308a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u8003\u3048\u4e2d\u306a\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u6642\u306f\u6563\u6b69\u3057\u3066\u6b69\u304d\u306a\u304c\u3089\u8003\u3048\u3066\u308b\u4e8b\u304c\u591a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2018\u5e74 4\u670820\u65e5 \u3000 \u3000 \u3000\u307e\u3060\u9023\u65e5\u30b9\u30e9\u30f3\u30d7\u304c\u7d9a\u3044\u3066\u3044\u3066\u307b\u3068\u3093\u3069\u9032\u3093\u3067\u7121\u3044\u3002 \u3000 \u3000<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13],"tags":[],"class_list":["post-6182","post","type-post","status-publish","format-standard","hentry","category-hextrategy","category-13"],"_links":{"self":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/comments?post=6182"}],"version-history":[{"count":18,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6182\/revisions"}],"predecessor-version":[{"id":6200,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6182\/revisions\/6200"}],"wp:attachment":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/media?parent=6182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/categories?post=6182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/tags?post=6182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}