{"id":159,"date":"2021-04-09T10:58:25","date_gmt":"2021-04-09T01:58:25","guid":{"rendered":"http:\/\/www.agile-software.site\/?p=159"},"modified":"2021-04-17T19:10:09","modified_gmt":"2021-04-17T10:10:09","slug":"%e3%83%aa%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=159","title":{"rendered":"\u30ea\u30b9\u30c8"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u4f8b\u6587<\/td><td>\u50cd\u304d<\/td><\/tr><tr><td>list.append(\u8981\u7d20)<\/td><td>\u30ea\u30b9\u30c8\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/td><\/tr><tr><td>del list[]<\/td><td>\u6307\u5b9a\u3057\u305f\u8981\u7d20\u3092\u524a\u9664\u3059\u308b<\/td><\/tr><tr><td>list.remove(\u5024)<\/td><td>\u30ea\u30b9\u30c8\u304b\u3089\u5024\u3068\u4e00\u81f4\u3059\u308b\u6700\u521d\u306e\u8981\u7d20\u3092\u53d6\u308a\u9664\u304f<\/td><\/tr><tr><td>list.pop()<\/td><td>\u30ea\u30b9\u30c8\u306e\u6700\u5f8c\u306e\u8981\u7d20\u3092\u53d6\u308a\u9664\u304d\u3001\u305d\u306e\u5024\u3092\u8fd4\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">input\u3057\u305f\u3082\u306e\u3092\u30ea\u30b9\u30c8\u5316\u3059\u308b<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>1 1024\u3000\u3092\u30ea\u30b9\u30c8\u5316\u3057\u3066\u5909\u6570\u306b\u5165\u308c\u308b\u3053\u3068\u3092\u8003\u3048\u308b\u3068\nlist=input().split(&quot; &quot;)\n\n#\u5b9f\u884c\u7d50\u679c\n[&#39;1&#39;,&#39;1024&#39;]<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18<\/h2>\n\n\n\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u3088\u3063\u3066\u30ea\u30b9\u30c8\u3092\u4f5c\u6210<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>#2\u306e\u4e57\u8a08\u7b97\u3092\u30ea\u30b9\u30c8\u306b\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u308b\u3068\nlst=[2**x for x in range(3)]\n\n#\u5b9f\u884c\u7d50\u679c\n[1,2,4]<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ea\u30b9\u30c8\u306e\u6570\u3092\u6570\u5024\u306b\u5909\u63db<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>#\u6587\u5b57\u5217\u306e\u6570\u5024\u304c\u30ea\u30b9\u30c8\u5316\u3055\u308c\u3066\u3044\u308b\u5909\u6570ls\u306b\u5bfe\u3057\nls = [&quot;10&quot;, &quot;20&quot;, &quot;30&quot;, &quot;40&quot;, &quot;50&quot;]\n#\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u6570\u5024\u306b\u5909\u63db\u3055\u308c\u308b\nnum_list = [int(i) for i in ookii]\nls = [10, 20, 30, 40, 50]<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C083:\u58f2\u4e0a\u306e\u767a\u8868<\/strong><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># coding: utf-8\n# \u81ea\u5206\u306e\u5f97\u610f\u306a\u8a00\u8a9e\u3067\n# Let&#39;s \u30c1\u30e3\u30ec\u30f3\u30b8\uff01\uff01\nkazu,tani = map(int,input().split(&quot; &quot;))\n\nx=[int(input()) for i in range(kazu)]\nookii=max(x)\n\nf=int(ookii\/tani)\n\n\nfor i in range(kazu):\n    a=int(x[i]\/tani)\n\n    print(str(i+1)+&#39;:&#39;+str(&quot;*&quot;*a+&quot;.&quot;*(f-a)))<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f8b\u6587 \u50cd\u304d list.append(\u8981\u7d20) \u30ea\u30b9\u30c8\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3002 del list[] \u6307\u5b9a\u3057\u305f\u8981\u7d20\u3092\u524a\u9664\u3059\u308b list.remove(\u5024) \u30ea\u30b9\u30c8\u304b\u3089\u5024\u3068\u4e00\u81f4\u3059\u308b\u6700\u521d\u306e\u8981\u7d20\u3092\u53d6\u308a\u9664\u304f list.pop() \u30ea\u30b9\u30c8\u306e<\/p>\n","protected":false},"author":1,"featured_media":330,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":6,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions\/331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/media\/330"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}