{"id":6121,"date":"2022-09-21T18:27:41","date_gmt":"2022-09-21T09:27:41","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=6121"},"modified":"2022-10-10T21:17:59","modified_gmt":"2022-10-10T12:17:59","slug":"paizalvup-10","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/09\/21\/paizalvup-10\/","title":{"rendered":"paizaLv\u30a2\u30c3\u30d7\u554f\u984c\u3068\u89e3\u7b54(\u6a19\u6e96\u5165\u529b9)Ruby"},"content":{"rendered":"<h2>\u203b\u30b9\u30ad\u30eb\u30c1\u30a7\u30c3\u30af\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u898f\u7d04\u306b\u3088\u308a\u516c\u5f0f\u306e\u89e3\u7b54\u30b3\u30fc\u30c9\u305d\u306e\u307e\u307e\u306f\u3088\u308d\u3057\u304f\u306a\u3044\u306e\u3067\u3001<br \/>\n\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b3\u30fc\u30c9\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/h2>\n<h2><a href=\"https:\/\/suzutukiblog.com\/index.php\/2022\/09\/21\/paiza_lvup\/\">\u8a73\u3057\u304f\u306f\u30b3\u30c1\u30e9<\/a><\/h2>\n<h2>\u306a\u308b\u3079\u304f\u308f\u304b\u308a\u3084\u3059\u3044\u89e3\u8aac\u3092\u4ed8\u3051\u307e\u3057\u305f\u3002<\/h2>\n<h3>\u554f\u984c\uff14\u300010 \u500b\u306e\u6574\u6570\u306e\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u306e\u5165\u529b\u00a0(paiza\u30e9\u30f3\u30af D \u76f8\u5f53)<\/h3>\n<div class=\"inr1\">\n<div class=\"mb30\">\n<p>\u6574\u6570 a_1, a_2, &#8230; , a_9, a_10 \u304c\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u6539\u884c\u533a\u5207\u308a\u306b\u3057\u3066 10 \u884c\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"inr2\">\n<div class=\"box3\">\n<dl class=\"txt1\">\n<dt class=\"icon2\">\u5165\u529b\u3055\u308c\u308b\u5024<\/dt>\n<dd>\u4ee5\u4e0b\u306e\u5f62\u5f0f\u3067\u6a19\u6e96\u5165\u529b\u306b\u3088\u3063\u3066\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\u6574\u6570 a_1, a_2, &#8230; , a_9, a_10 \u304c \u534a\u89d2\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre>a_1 a_2 ... a_9 a_10<\/pre>\n<p><span style=\"font-size: 1rem;\">\u5165\u529b\u5024\u6700\u7d42\u884c\u306e\u672b\u5c3e\u306b\u6539\u884c\u304c\uff11\u3064\u5165\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>\u6587\u5b57\u5217\u306f\u6a19\u6e96\u5165\u529b\u304b\u3089\u6e21\u3055\u308c\u307e\u3059\u3002<\/dd>\n<\/dl>\n<\/div>\n<div class=\"box3\">\n<dl class=\"txt1\">\n<dt class=\"icon3\">\u671f\u5f85\u3059\u308b\u51fa\u529b<\/dt>\n<dd>a_1, a_2, &#8230; , a_9, a_10 \u3092 10 \u884c\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u672b\u5c3e\u306b\u6539\u884c\u3092\u5165\u308c\u3001\u4f59\u8a08\u306a\u6587\u5b57\u3001\u7a7a\u884c\u3092\u542b\u3093\u3067\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<pre>a_1\r\na_2\r\n...\r\na_9\r\na_10<\/pre>\n<\/dd>\n<\/dl>\n<\/div>\n<div class=\"box3\">\n<dl class=\"txt1\">\n<dt class=\"icon4\">\u6761\u4ef6<\/dt>\n<dd>\n<pre>\u3059\u3079\u3066\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u3092\u307f\u305f\u3057\u307e\u3059\u3002\r\n\r\n\u30fba_1, a_2, ... , a_9, a_10 \u306f 1 \u4ee5\u4e0a 10,000 \u4ee5\u4e0b\u306e\u6574\u6570<\/pre>\n<\/dd>\n<\/dl>\n<\/div>\n<div class=\"box1\">\n<dl class=\"txt2\">\n<dt>\u5165\u529b\u4f8b1<\/dt>\n<dd>\n<pre>10 9 8 7 6 5 4 3 2 1<\/pre>\n<\/dd>\n<\/dl>\n<\/div>\n<div class=\"box1\">\n<dl class=\"txt2\">\n<dt>\u51fa\u529b\u4f8b1<\/dt>\n<dd>\n<pre>10\r\n9\r\n8\r\n7\r\n6\r\n5\r\n4\r\n3\r\n2\r\n1<\/pre>\n<\/dd>\n<\/dl>\n<\/div>\n<\/div>\n<h3>\u89e3\u7b54\u3000\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u523b\u307f\u3067\u4e0e\u3048\u3089\u308c\u308b\u5165\u529b\u5024\u3092\u914d\u5217\u306b\u3057\u3066\u53d7\u3051\u53d6\u308a\u2192[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]puts\u3067\u51fa\u529b\u3059\u308b<\/h3>\n<pre>numbers = gets.split.map(&amp;:to_i) \r\nputs numbers<\/pre>\n<h3>FINAL\u554f\u984c\u00a0 1,000\u500b\u306e\u6574\u6570\u306e\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u306e\u5165\u529b<\/h3>\n<p>\u6574\u6570 a_1, a_2, &#8230; , a_999, a_1000 \u304c\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u6539\u884c\u533a\u5207\u308a\u306b\u3057\u3066 1000 \u884c\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u671f\u5f85\u3059\u308b\u51fa\u529b<\/h3>\n<p>a_1, a_2, &#8230; , a_999, a_1000 \u3092 1000 \u884c\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u672b\u5c3e\u306b\u6539\u884c\u3092\u5165\u308c\u3001\u4f59\u8a08\u306a\u6587\u5b57\u3001\u7a7a\u884c\u3092\u542b\u3093\u3067\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<h3>\u5165\u529b\u4f8b<\/h3>\n<pre>5294 3387 953 7129 \u30fb\u30fb\u30fb 4344<\/pre>\n<h3>\u671f\u5f85\u3059\u308b\u51fa\u529b<\/h3>\n<pre>5294 3387 953 7129 \u30fb\u30fb\u30fb 4344<\/pre>\n<h3>\u89e3\u7b54\u3000readlines.map(&amp;:to_i)\u3067\u8907\u6570\u884c\u306e\u5165\u529b\u5024(\u6570\u5024)\u3092\u53d7\u3051\u53d6\u308a\u5909\u6570\u306b\u4ee3\u5165\u3057\u3066puts\u3067\u51fa\u529b\u3059\u308b<\/h3>\n<pre>numbers = readlines.map(&amp;:to_i)\r\nputs numbers<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u30b9\u30ad\u30eb\u30c1\u30a7\u30c3\u30af\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u898f\u7d04\u306b\u3088\u308a\u516c\u5f0f\u306e\u89e3\u7b54\u30b3\u30fc\u30c9\u305d\u306e\u307e\u307e\u306f\u3088\u308d\u3057\u304f\u306a\u3044\u306e\u3067\u3001 \u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b3\u30fc\u30c9\u306b\u3057\u3066\u3044\u307e\u3059\u3002 \u8a73\u3057\u304f\u306f\u30b3\u30c1\u30e9 \u306a\u308b\u3079\u304f\u308f\u304b\u308a\u3084\u3059\u3044\u89e3\u8aac\u3092\u4ed8\u3051\u307e\u3057\u305f\u3002 \u554f\u984c\uff14\u300010 \u500b\u306e\u6574\u6570\u306e\u534a\u89d2\u30b9\u30da\u30fc\u30b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27],"tags":[],"class_list":["post-6121","post","type-post","status-publish","format-standard","hentry","category-programming-note"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/6121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=6121"}],"version-history":[{"count":3,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/6121\/revisions"}],"predecessor-version":[{"id":6126,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/6121\/revisions\/6126"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=6121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=6121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=6121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}