{"id":7465,"date":"2020-04-13T20:32:19","date_gmt":"2020-04-13T11:32:19","guid":{"rendered":"https:\/\/www.vincentina.net\/?p=7465"},"modified":"2020-04-14T19:17:59","modified_gmt":"2020-04-14T10:17:59","slug":"%e5%b0%8f%e5%ad%a6%e7%94%9f%e5%90%91%e3%81%91%e3%81%ab%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e3%82%92%e8%aa%9e%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=7465","title":{"rendered":"\u5c0f\u5b66\u751f\u304f\u3089\u3044\u306e\u5b50\u4f9b\u304c\u3044\u308b\u4eba\u5411\u3051\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8a9e\u3063\u3066\u307f\u308b"},"content":{"rendered":"<div class=\"middle-margin\">\n\u4eca\u5e74\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u80b2\u304c\u5fc5\u4fee\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u590f\u4f11\u307f\u306e\u8ab2\u984c\u306a\u3093\u304b\u306b\u3082\u81ea\u7531\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7814\u7a76\u307f\u305f\u3044\u306a\u3082\u306e\u304c\u5897\u3048\u308b\u306e\u3067\u3059\u304b\u306d\u30fc\u3002<br \/>\n\u306a\u3093\u3066\u601d\u3044\u306a\u304c\u3089\u66f8\u3044\u3066\u307e\u3059\u3002\u305d\u3046\u306a\u3063\u3066\u304f\u308b\u3068\u5f53\u7136\u3061\u3061\u306f\u306f\u9054\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u306e\u8cea\u554f\u306a\u3069\u3082\u98db\u3073\u4ea4\u3046\u4e16\u306e\u4e2d\u306b\u3060\u3093\u3060\u3093\u3068\u306a\u3063\u3066\u304f\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3044\u307e\u306e\u89aa\u4e16\u4ee3\u3060\u3068\u305d\u3093\u306a\u306b\u77e5\u3089\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u306e\u304b\u306a\u3068\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5c0f\u5b66\u751f\u304f\u3089\u3044\u306e\u5b50\u4f9b\u304c\u3044\u308b\u4eba\u5411\u3051\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8a9e\u3063\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3082\u306e\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3002\n<\/div>\n<h3>\u30ef\u30c3\u30af\u30b9\u304b\u3051\u308b\u3001\u30ef\u30c3\u30af\u30b9\u3068\u308b<\/h3>\n<div class=\"middle-margin\">\n\u5c0f\u751f\u304c\u306f\u3058\u3081\u3066\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u7fd2\u3063\u305f\u3068\u304d\u306f\u4f8b\u984c\u3068\u3057\u3066\u96fb\u8a71\u3092\u304b\u3051\u308b\u3068\u3044\u3046\u306e\u304c\u304a\u984c\u3060\u3063\u305f\u3088\u3046\u306a\u9055\u3046\u3088\u3046\u306a\u3002<br \/>\n\u307e\u3042\u3068\u3082\u304b\u304f\u3001\u96fb\u8a71\u306b\u3064\u3044\u3066\u306e\u4e00\u90e8\u59cb\u7d42\u3092\u8003\u3048\u308b\u3088\u3046\u306a\u611f\u3058\u3002<br \/>\n\u6700\u8fd1\u306e\u5b50\u4f9b\u3063\u3066\u56fa\u5b9a\u96fb\u8a71\u306a\u3093\u304b\u306f\u5206\u304b\u308b\u306e\u3060\u308d\u3046\u304b\uff1f\u307e\u3042\u3044\u3044\u304b\u3002<\/p>\n<p>\u56fa\u5b9a\u96fb\u8a71\u3063\u3066\u3044\u3046\u306e\u306f\u3053\u3046\u3044\u3046\u3084\u3064\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2020\/04\/denwa.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2020\/04\/denwa.png\" alt=\"\" width=\"400\" height=\"305\" class=\"alignnone size-small wp-image-7466\" \/><\/a>\n<\/div>\n<div class=\"middle-margin\">\n\u3093\u3067\u3072\u3068\u3064\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u5927\u5207\u306a\u3053\u3068\u3092\u66f8\u304f\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f<span class=\"large-font\">\u66f8\u304b\u308c\u3066\u3044\u308b\u3068\u304a\u308a\u306b<\/span>\u52d5\u304d\u307e\u3059\u3002<br \/>\n<span class=\"large-font\">\u66f8\u3044\u305f\u3068\u304a\u308a\u306b<\/span>\u52d5\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b7\u30a2\u306e\u304a\u3058\u3055\u3093\u304c\u3001\u76f8\u624b\u304c\u3061\u3087\u3063\u3068\u96e2\u308c\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u30d1\u30a4\u30eb\u30c9\u30e9\u30a4\u30d0\u30fc\u304c\u304b\u3051\u308c\u308b\u306e\u3082\u30017\u56de\u7d9a\u3051\u3066\u9003\u3052\u308b\u3068\u3044\u3064\u3082\u653b\u6483\u304c\u4f1a\u5fc3\u306e\u4e00\u6483\u306b\u306a\u3063\u305f\u308a\u3059\u308b\u306e\u3082\u3001\u305d\u3046\u66f8\u304b\u308c\u3066\u3044\u308b\u304b\u3089\u3060\u3057\u3001\u306a\u3093\u3089\u304b\u306e\u7406\u7531\u304c\u3042\u3063\u305f\u308a\u3057\u307e\u3059\u3002\n<\/p><\/div>\n<div class=\"middle-margin\">\n\u3067\u306f\u3001\u96fb\u8a71\u3092\u304b\u3051\u308b\u305f\u3081\u306e\u547d\u4ee4\u3092\u4e0a\u3052\u3066\u307f\u3088\u3046\u306e\u30b3\u30fc\u30ca\u30fc\u3002<\/p>\n<p>1.\u96fb\u8a71\u30a2\u30d7\u30ea\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3002<br \/>\n2.\u30a2\u30c9\u30ec\u30b9\u5e33\u3092\u547c\u3073\u51fa\u3059\u3002<br \/>\n3.\u304b\u3051\u305f\u3044\u4eba\u306e\u540d\u524d\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3002<br \/>\n4.\u96fb\u8a71\u30de\u30fc\u30af\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3002<\/p>\n<p>\u3068\u3001\u3044\u3046\u6d41\u308c\u304c\u4e00\u822c\u7684\u304b\u306a\u3068\u601d\u3046\u3051\u3069\u3069\u3046\u3084\u308d\u3046\u3002\u6700\u521d\u306e\u65b9\u306b\u56fa\u5b9a\u96fb\u8a71\u3092\u4e0a\u3052\u3066\u305f\u3093\u3060\u3051\u3069\u3001\u4e26\u3079\u3066\u307f\u305f\u3089\u3059\u3054\u3044\u547d\u4ee4\u304c\u5c11\u306a\u3059\u304e\u305f\u306e\u3067\u3001\u6025\u3067\u3059\u304c\u96fb\u8a71\u30a2\u30d7\u30ea\u306b\u3057\u307e\u3057\u305f\u3002\u3046\u3075\u3075\u3002\n<\/p><\/div>\n<div class=\"middle-margin\">\n\u3053\u3053\u306b\u30014\u3064\u306e\u547d\u4ee4\u304c\u3042\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3053\u306e4\u3064\u306e\u547d\u4ee4\u306e\u4e2d\u306b\u3082\u307e\u305f\u7d30\u304b\u3044\u547d\u4ee4\u3084\u5236\u5fa1\u304c\u5225\u9014\u3042\u3063\u305f\u308a\u3059\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u611f\u3058\u3092\u60f3\u50cf\u3059\u308b\u3068\u3001\u3042\u3001\u306a\u3093\u304b\u30d7\u30ed\u30b0\u30e9\u30e0\u3063\u307d\u3044\uff01\u3063\u3066\u611f\u3058\u308b\u304b\u3082\u3002\u305f\u3068\u3048\u3070\u8ab0\u304c\u3059\u308b\u304b\u3068\u304b\u3001\u3069\u3063\u3061\u306e\u624b\u3067\u3084\u308b\u306e\u304b\u3068\u304b\u3001\u3069\u3093\u306a\u5f37\u3055\u3067\u62bc\u3059\u306e\u304b\u3068\u304b\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u96fb\u8a71\u3092\u304b\u3051\u308b\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3001\u305f\u3068\u3048\u3070\u3053\u306e4\u500b\u306e\u547d\u4ee4\u3067\u30821\u500b\u3067\u3082\u9806\u756a\u304c\u9055\u3046\u3068\u6210\u7acb\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u96fb\u8a71\u30a2\u30d7\u30ea\u3092\u30bf\u30c3\u30d7\u3057\u3066\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u306a\u3044\u3068\u30a2\u30c9\u30ec\u30b9\u5e33\u304c\u62bc\u305b\u308b\u72b6\u614b\u306b\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u3082\u3057\u4eba\u9593\u3060\u3063\u305f\u3089\u62bc\u3057\u5fd8\u308c\u3068\u304b\u62bc\u3057\u640d\u3058\u306a\u3093\u304b\u3060\u3063\u305f\u308a\u3059\u308b\u3068\u3082\u30461\u5ea6\u96fb\u8a71\u30a2\u30d7\u30ea\u3092\u30bf\u30c3\u30d7\u3067\u304d\u308b\u3051\u3069\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u305d\u3046\u66f8\u304b\u308c\u3066\u3044\u306a\u3051\u308c\u30702\u756a\u306e\u30a2\u30c9\u30ec\u30b9\u5e33\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3059\u308b\u306e\u3067\u305d\u3053\u3067\u5931\u6557\u30d6\u30fc\u3067\u3059\u3002\u26051\u500b\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u30671\u756a\u306b\u5931\u6557\u3057\u3066\u305f\u30892\u756a\u306f\u3084\u3089\u305a\u306b\u305d\u306e\u307e\u307e\u7d42\u4e86\u306b\u3059\u308b\uff01\u3068\u304b\u30011\u756a\u3092\u3082\u30461\u56de\u3084\u308b\u3068\u304b\u306e\u547d\u4ee4\u3092\u5165\u308c\u3066\u3084\u308c\u3070\u826f\u3044\u611f\u3058\u3067\u3059\u306d\u3002\n<\/p><\/div>\n<div class=\"middle-margin\">\n\u3060\u3044\u305f\u3044\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\n<\/div>\n<div class=\"middle-margin\">\u3067\u306f\u3001\u8aaa\u660e\u304c\u7d42\u308f\u3063\u305f\u306e\u3067\u5b9f\u8df5\u3067\u3059\u3002<br \/>\n\u305f\u3076\u3093\u3060\u3051\u3069\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6388\u696d\u3068\u3044\u3046\u3082\u306e\u306e\u3001\u8ad6\u7406\u7684\u306a\u8003\u3048\u3092\u990a\u3063\u3066\u3044\u3053\u3063\u305c\u3068\u3044\u3046\u306e\u3082\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u306e\u4e00\u8cab\u3060\u308d\u3046\u3068\u306f\u601d\u3046\u306e\u3067\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u305d\u308c\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3092\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3082\u3057\u304b\u3057\u305f\u3089\u305d\u306e\u65b9\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u3093\u3057\u3002\n<\/div>\n<h3>\u3058\u3083\u3093\u3051\u3093\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u308b\u30b3\u30fc\u30ca\u30fc<\/h3>\n<div class=\"middle-margin\">\n\u3055\u3063\u305d\u304f\u3084\u3051\u3069\u3082\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002\u8a00\u8a9e\u306f\u4eca\u3092\u3068\u304d\u3081\u304fGo\u8a00\u8a9e\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a00\u8a9e\u306fGo\uff01\u3067\u30fc\u3059\uff01\u3068\u304b\u8a00\u3046\u3068\u559c\u3076\u5b50\u4f9b\u304c\u5c45\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u601d\u3063\u305f\u3002\u3002\u3002\u304a\u3089\u3093\u304b\u306a\u3002\n<\/p><\/div>\n<div class=\"middle-margin\">\n\u3042\u304f\u307e\u3067\u4e00\u4f8b\u3067\u3059\u306e\u3067\u3001\u66f8\u304d\u65b9\u306f\u5c71\u307b\u3069\u3042\u308b\u3068\u3044\u3046\u306e\u306f\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u610f\u5473\u306f\u3068\u304f\u306b\u8003\u3048\u306a\u3044\u3067\u3001go\u3092\u8d70\u3089\u305b\u308b\u305f\u3081\u306e\u6700\u521d\u306e\u30c6\u30f3\u30d7\u30ec\u7684\u306a\u3084\u3064\u3067\u3059\u3002<br \/>\n\u3053\u306ego\u8a00\u8a9e\u3068\u3044\u3046\u8a00\u8a9e\u3067\u3059\u304c\u3001\u306a\u3093\u3068\u7121\u6599\u3067\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u7c21\u5358\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/go-tour-jp.appspot.com\/welcome\/1\" title=\"GO\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" rel=\"noopener nofollow noreferrer\" target=\"_blank\">GO\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a><\/p>\n<p>\u3053\u3061\u3089\u306fGo\u8a00\u8a9e\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3059\u3002<br \/>\n\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u3066\u3044\u304f\u3053\u3068\u3082\u3067\u304d\u308b\u3057\u3001\u81ea\u5206\u3067\u81ea\u7531\u306b\u66f8\u3044\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<br \/>\n\u53f3\u7aef\u306e\u9ec4\u8272\u306e\u4e2d\u3067\u52d5\u304b\u305b\u307e\u3059\u306e\u3067\u305c\u3072\u304a\u8a66\u3057\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npackage main\r\n\r\nimport (\r\n\t&quot;fmt&quot;\r\n\t&quot;math\/rand&quot;\r\n\t&quot;time&quot;\r\n)\r\n\r\nfunc main() {\r\n\r\n}\r\n\r\n<\/pre>\n<p>\u52d5\u304b\u3057\u305f\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306f func main() { \u306e\u4e2d\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\n<\/p><\/div>\n<div class=\"middle-margin\">\n<p>\u3053\u3053\u3067\u305f\u3051\u3061\u3083\u3093\u3068\u3051\u3093\u3061\u3083\u3093\u3068\u3044\u3046\u4e8c\u4eba\u306b\u3058\u3083\u3093\u3051\u3093\u3092\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u306b\u3057\u307e\u3046\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhuman := map&#x5B;string]int{&quot;take&quot;: 0, &quot;ken&quot;: 0}\r\n<\/pre>\n<p>\u4e8c\u4eba\u3068\u3082\u3001\u304a\u308c\u306f\u30b0\u30fc\u3057\u304b\u3060\u3055\u306d\u30fc\uff01\u3068\u304b\u3067\u306f\u306a\u304f\u3066\u3001\u7d14\u7c8b\u306b\u3058\u3083\u3093\u3051\u3093\u3092\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrand.Seed(time.Now().UnixNano())\r\n<\/pre>\n<p>\u4f55\u56de\u3084\u308b\u304b\u306e\u30ab\u30a6\u30f3\u30c8\u3001\u521d\u671f\u5024\u306f0\u306b\u3057\u307e\u3059\u3002\u3042\u3044\u3053\u30820\u56de\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncount := 0\r\naiko := 0\r\n<\/pre>\n<p>\u3072\u3068\u307e\u305a10\u4e07\u56de\u52dd\u8ca0\u3057\u3066\u3082\u3089\u3046\u3088\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfor count &lt; 100000 { }\r\n<\/pre>\n<p>10\u4e07\u56de\u306e\u7e70\u308a\u8fd4\u3057\u3066\u3082\u3089\u3046\u3082\u306e\u306f {} \u306e\u4e2d\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u3058\u3083\u3093\u3051\u3093\u306f\u30b0\u30fc\u3068\u30c1\u30fc\u3068\u30d1\u30fc\u306e3\u3064\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntakePon := rand.Intn(3)\r\nkenPon := rand.Intn(3)\r\n<\/pre>\n<p>\u3067\u306f\u305d\u308c\u305e\u308c\u306e\u5834\u5408\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002if \u301c\u3082\u3057\u3082\u301c\u3068\u3044\u3046\u547d\u4ee4\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\uff10\u304c\u30b0\u30fc\u3001\uff11\u304c\u30c1\u30fc\u3001\uff12\u304c\u30d1\u30fc\u3067\u3059\u3002\u52dd\u3063\u305f\u307b\u3046\u306b\uff11\u30dd\u30a4\u30f3\u30c8\u3002<br \/>\n\u30a2\u30a4\u30b3\u306e\u6570\u3082\u6570\u3048\u308b\u3053\u3068\u306b\u3057\u3066\u3001\u30ce\u30fc\u30ab\u30a6\u30f3\u30c8\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nif takePon == 0 &amp;&amp; kenPon == 1 {\r\n\thuman&#x5B;&quot;take&quot;]++\r\n} else if takePon == 0 &amp;&amp; kenPon == 2 {\r\n\thuman&#x5B;&quot;ken&quot;]++\r\n} else if takePon == 1 &amp;&amp; kenPon == 0 {\r\n\thuman&#x5B;&quot;ken&quot;]++\r\n} else if takePon == 1 &amp;&amp; kenPon == 2 {\r\n\thuman&#x5B;&quot;take&quot;]++\r\n} else if takePon == 2 &amp;&amp; kenPon == 0 {\r\n\thuman&#x5B;&quot;take&quot;]++\r\n} else if takePon == 2 &amp;&amp; kenPon == 1 {\r\n\thuman&#x5B;&quot;ken&quot;]++\r\n} else {\r\n\taiko++\r\n\tcount--\r\n}\r\n<\/pre>\n<p>\u3067\u3001\u6b21\u306e\u52dd\u8ca0\u3002\u3053\u308c\u3092\uff11\uff10\u4e07\u56de\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">count++<\/pre>\n<\/div>\n<div class=\"middle-margin\">\n\u753b\u9762\u306b\u8868\u793a\u3057\u3066\u3082\u3089\u3046\u3088\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfmt.Printf(&quot;\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 %d \u3051\u3093\u306e\u52dd\u3061 %d \u3042\u3044\u3053 %d \\n&quot;, human&#x5B;&quot;take&quot;], human&#x5B;&quot;ken&quot;], aiko)\r\n<\/pre>\n<\/div>\n<div class=\"middle-margin\">\n\u5168\u90e8\u304f\u3063\u3064\u3051\u308b\u3068\u3053\u3093\u306a\u3075\u3046\u306b\u306a\u308b\u301c\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npackage main\r\n\r\nimport (\r\n\t&quot;fmt&quot;\r\n\t&quot;math\/rand&quot;\r\n\t&quot;time&quot;\r\n)\r\n\r\nfunc main() {\r\n\thuman := map&#x5B;string]int{&quot;take&quot;: 0, &quot;ken&quot;: 0}\r\n\r\n\trand.Seed(time.Now().UnixNano())\r\n\r\n\tcount := 0\r\n\taiko := 0\r\n\r\n\tfor count &lt; 100000 {\r\n\r\n\t\ttakePon := rand.Intn(3)\r\n\t\tkenPon := rand.Intn(3)\r\n\r\n\t\tif takePon == 0 &amp;&amp; kenPon == 1 {\r\n\t\t\thuman&#x5B;&quot;take&quot;]++\r\n\t\t} else if takePon == 0 &amp;&amp; kenPon == 2 {\r\n\t\t\thuman&#x5B;&quot;ken&quot;]++\r\n\t\t} else if takePon == 1 &amp;&amp; kenPon == 0 {\r\n\t\t\thuman&#x5B;&quot;ken&quot;]++\r\n\t\t} else if takePon == 1 &amp;&amp; kenPon == 2 {\r\n\t\t\thuman&#x5B;&quot;take&quot;]++\r\n\t\t} else if takePon == 2 &amp;&amp; kenPon == 0 {\r\n\t\t\thuman&#x5B;&quot;take&quot;]++\r\n\t\t} else if takePon == 2 &amp;&amp; kenPon == 1 {\r\n\t\t\thuman&#x5B;&quot;ken&quot;]++\r\n\t\t} else {\r\n\t\t\taiko++\r\n\t\t\tcount--\r\n\t\t}\r\n\r\n\t\tcount++\r\n\t}\r\n\r\n\tfmt.Printf(&quot;\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 %d \u3051\u3093\u306e\u52dd\u3061 %d \u3042\u3044\u3053 %d \\n&quot;, human&#x5B;&quot;take&quot;], human&#x5B;&quot;ken&quot;], aiko)\r\n}\r\n\r\n<\/pre>\n<\/div>\n<div class=\"large-margin\">\n\u3067\u306f\uff01<br \/>\n\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u304b\u3002\u3069\u3063\u3061\u304c\u52dd\u3064\u304b\u306a\u3002\u3069\u3063\u3061\u304c\u52dd\u3064\u304b\u306a\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsample01.go\r\n\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 50108 \u3051\u3093\u306e\u52dd\u3061 49892 \u3042\u3044\u3053 49499 \r\n<\/pre>\n<\/div>\n<div class=\"middle-margin\">\n\u304a\u304a\u3063\u3068\u3001\u3060\u3044\u305f\u3044\u534a\u5206\u304f\u3089\u3044\u3067\u3060\u3044\u305f\u3044\u4e92\u89d2\u306e\u3088\u3046\u3060\u306d\u3002\u3067\u306f\u6570\u5b66\u7684\u306b\u89e3\u3044\u3066\u3044\u308b\u306e\u3092\u30e4\u30d5\u30fc\u77e5\u6075\u888b\u3067\u898b\u3064\u3051\u305f\u306e\u3067\u5f15\u7528\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><cite>YahooJapan\u77e5\u6075\u888b \u3058\u3083\u3093\u3051\u3093\u3067\u52dd\u3064\u78ba\u7387\u306f\u4f55\u30d1\u30fc\u30bb\u30f3\u30c8\u3067\u3059\u304b\uff1f<\/cite><br \/>\nhttps:\/\/detail.chiebukuro.yahoo.co.jp\/qa\/question_detail\/q12153383137<\/p>\n<blockquote><p>\nn\u4eba\u3067\u3058\u3083\u3093\u3051\u3093\u3057\u305f\u5834\u5408\u3001<br \/>\n1\u56de\u76ee\u306e\u52dd\u8ca0\u3067\u52dd\u3064\u30d1\u30bf\u30fc\u30f3\u3092\u8003\u3048\u307e\u3059\u3002<br \/>\n\u5168\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30b0\u30fc, \u30c1\u30e7\u30ad, \u30d1\u30fc\u306e<br \/>\n3\u7a2e\u985e\u3092n\u500b\u4e26\u3079\u308b\u91cd\u8907\u9806\u5217\u3067\u3059\u304b\u3089\u30013^n\u901a\u308a\u3002<br \/>\n\u305d\u306e\u3046\u3061\u3001\u52dd\u8ca0\u304c\u6c7a\u307e\u308b\u30d1\u30bf\u30fc\u30f3\u3068\u306f<br \/>\n\u3059\u3079\u3066\u306e\u4eba\u304c\u51fa\u3057\u305f\u624b\u304c\u3001<br \/>\n\u30b0\u30fc, \u30c1\u30e7\u30ad\u306e\u307f<br \/>\n\u30b0\u30fc, \u30d1\u30fc\u306e\u307f<br \/>\n\u30c1\u30e7\u30ad, \u30d1\u30fc\u306e\u307f<br \/>\n\u306e\u3044\u305a\u308c\u304b\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u305d\u308c\u305e\u308c\u3001<br \/>\n2\u7a2e\u985e\u3092n\u500b\u4e26\u3079\u308b\u91cd\u8907\u9806\u52172^n\u901a\u308a\u304b\u3089\u3001<br \/>\n\u3059\u3079\u3066\u540c\u3058\u624b(\u30b0\u30fc\u306e\u307f\u3001\u3068\u304b)\u3067\u3042\u308b<br \/>\n2\u901a\u308a\u3092\u5f15\u3044\u305f\u3082\u306e\u3067\u3059\u306e\u3067\u3001<br \/>\n\u305d\u308c\u305e\u308c\u306f(2^n\uff0d2)\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n3\u30d1\u30bf\u30fc\u30f3\u3042\u308b\u306e\u30673(2^n\uff0d2)\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>\u52dd\u3064\u30d1\u30bf\u30fc\u30f3\u306b\u9650\u5b9a\u3059\u308b\u3068<br \/>\n3(2^n\uff0d2)\uff0f2\uff1d3(2^(n-1)\uff0d1)\u901a\u308a\u306b\u306a\u308a\u3001<br \/>\n\u52dd\u8ca0\u304c\u6c7a\u307e\u308b\u78ba\u7387\u306f\u5168\u4f53\u306e3^n\u3067\u5272\u3063\u3066<br \/>\n3(2^(n-1)\uff0d1)\uff0f3^n<br \/>\n\uff1d(2^(n-1)\uff0d1)\uff0f3^(n-1)\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3084\u3084\u3053\u3057\u304f\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3092P(n)\u3068\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u540c\u69d8\u306b\u3057\u3066\u3001\u8ca0\u3051\u308b\u78ba\u7387\u3082\u540c\u3058\u3060\u3068\u5206\u304b\u308a\u307e\u3059\u3002<br \/>\n\u3042\u3044\u3053\u306b\u306a\u308b\u78ba\u7387\u306f\u3001<br \/>\n\u52dd\u3061\u3067\u3082\u8ca0\u3051\u3067\u3082\u306a\u3044\u78ba\u7387\u306a\u306e\u3067<br \/>\n1\u304b\u3089\u5f15\u3044\u3066\u30011\uff0d2P(n)\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u30671\u56de\u306e\u52dd\u8ca0\u3067\u6c7a\u307e\u308b\u8af8\u78ba\u7387\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306b\u3001\u6700\u7d42\u7684\u306b\u52dd\u3064\u78ba\u7387\u3092\u898b\u3066\u307f\u307e\u3059\u3002<br \/>\n1\u56de\u76ee\u3067\u52dd\u3064\u78ba\u7387\u306fP(n)\u3067\u3059\u304c\u3001<br \/>\n2\u56de\u76ee\u3067\u52dd\u3064\u78ba\u7387\u3068\u306f\u30011\u56de\u76ee\u3067\u3042\u3044\u3053\u306b\u306a\u3063\u3066<br \/>\n2\u56de\u76ee\u3067\u52dd\u3064\u5834\u5408\u306e\u78ba\u7387\u3067\u3059\u306e\u3067\u3001<br \/>\n(1\uff0d2P(n))P(n)\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n3\u56de\u76ee\u306f\u3042\u3044\u3053\u3001\u3042\u3044\u3053\u3001\u52dd\u3061\u3001\u306a\u306e\u3067\u3001<br \/>\n(1\uff0d2P(n))^2 P(n)\u3068\u306a\u308a\u3001<br \/>\nk\u56de\u76ee\u3067\u306f(1\uff0d2P(n))^(k-1) P(n)\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5f93\u3063\u3066\u3001\u6700\u7d42\u7684\u306b\u52dd\u3064\u78ba\u7387\u306f\u3053\u308c\u3089\u3092<br \/>\n\u7121\u9650\u306b\u8db3\u3057\u305f\u7d50\u679c\u3067\u3042\u308a\u3001<br \/>\nP(n)\uff0b(1\uff0d2P(n))P(n)\uff0b(1\uff0d2P(n))^2 P(n)\uff0b\u2026\uff0b(1\uff0d2P(n))^(k-1) P(n)\uff0b\u2026<br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u521d\u9805P(n)\u3001\u516c\u6bd4(1\uff0d2P(n))\u306e<br \/>\n\u7121\u9650\u7b49\u6bd4\u7d1a\u6570\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304b\u3089\u3001<br \/>\n\uff1dP(n)\uff0f(1\uff0d(1\uff0d2P(n))) \u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u8a08\u7b97\u3092\u9032\u3081\u3066\u307f\u308b\u3068\u3001<br \/>\n\uff1dP(n)\uff0f(1\uff0d1\uff0b2P(n))<br \/>\n\uff1dP(n)\uff0f(2P(n))<br \/>\n\uff1d1\uff0f2<br \/>\n\u3068\u306a\u308a\u3001P(n)\u304c\u4f55\u3067\u3042\u308d\u3046\u3068\u7d04\u5206\u3057\u3066\u6d88\u3048\u3066\u3001<br \/>\n\u6700\u7d42\u7684\u306b\u52dd\u3064\u78ba\u7387\u306f\u4eba\u6570\u306b\u3088\u3089\u305a<br \/>\n1\uff0f2\u3067\u3042\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3060\u3044\u305f\u30441\/2\u3067\u3059\u3002<\/p>\n<p>\u4f55\u5ea6\u304b\u8a66\u3057\u305f\u7d50\u679c\u3092\u4e0b\u306b\u8cbc\u308a\u307e\u3057\u305f\u3002<br \/>\n\u591a\u5c11\u306e\u3070\u3089\u3064\u304d\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3058\u3083\u3093\u3051\u3093\u306a\u306e\u3067\u305d\u3093\u306a\u306b\u30d0\u30e9\u3064\u304b\u306a\u3044\u3067\u3059\u306d\u3002<br \/>\n\u5168\u90e8\u305f\u3051\u306e\u8ca0\u3051\u306b\u306a\u3063\u3066\u307e\u3059\u3051\u3069\u3002<\/p>\n<p>\u76f8\u624b\u304c\u30e1\u30f3\u30bf\u30ea\u30b9\u30c8Daigo\u3055\u3093\u3068\u304b\u3067\u306a\u3051\u308c\u3070\u3060\u3044\u305f\u30441\/2\u3067\u52dd\u5229\u3067\u304d\u308b\u3093\u3060\u306d\u3002<\/p>\n<pre>\r\n\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 49934 \u3051\u3093\u306e\u52dd\u3061 50066 \u3042\u3044\u3053 50259 \r\n\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 49832 \u3051\u3093\u306e\u52dd\u3061 50168 \u3042\u3044\u3053 50098 \r\n\u7d50\u679c\u3000\u305f\u3051\u306e\u52dd\u3061 49987 \u3051\u3093\u306e\u52dd\u3061 50013 \u3042\u3044\u3053 50161 \r\n<\/pre>\n<\/div>\n<div class=\"middle-margin\">\n\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4ed5\u65b9\u306b\u3088\u3063\u3066\u306f\u3001\u305f\u3051\u306f\u30b0\u30fc\u3092\u51fa\u3057\u3084\u3059\u3044\u3068\u304b\u3001\u30d1\u30fc\u3092\u51fa\u3057\u3084\u3059\u3044\u3068\u304b\u3067\u304d\u308b\u306e\u3067\u8003\u3048\u3066\u307f\u308b\u3068\u9762\u767d\u3044\u304b\u3082\u3057\u304b\u3002\n<\/div>\n<div class=\"middle-margin\">\n\u3058\u3083\u3042\u4eca\u65e5\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u5834\u5408\u306e\u6570\u306f\u4e2d\u5b66\u3067\u7fd2\u3046\u307f\u305f\u3044\u306a\u306e\u3067\u3061\u3087\u3063\u3068\u4e88\u7fd2\u306b\u306a\u3063\u3061\u3083\u3063\u305f\u3002\n<\/div>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=7465\" data-text=\"\u5c0f\u5b66\u751f\u304f\u3089\u3044\u306e\u5b50\u4f9b\u304c\u3044\u308b\u4eba\u5411\u3051\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8a9e\u3063\u3066\u307f\u308b\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5e74\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u80b2\u304c\u5fc5\u4fee\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u590f\u4f11\u307f\u306e\u8ab2\u984c\u306a\u3093\u304b\u306b\u3082\u81ea\u7531\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7814\u7a76\u307f\u305f\u3044\u306a\u3082\u306e\u304c\u5897\u3048\u308b\u306e\u3067\u3059\u304b\u306d\u30fc\u3002 \u306a\u3093\u3066\u601d\u3044\u306a\u304c\u3089\u66f8\u3044\u3066\u307e\u3059\u3002\u305d\u3046\u306a\u3063\u3066\u304f\u308b\u3068\u5f53\u7136\u3061\u3061\u306f\u306f\u9054\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u306e\u8cea &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=7465\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u5c0f\u5b66\u751f\u304f\u3089\u3044\u306e\u5b50\u4f9b\u304c\u3044\u308b\u4eba\u5411\u3051\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8a9e\u3063\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-7465","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/7465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7465"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/7465\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}