ããç¨åº¦ç¥è¦ãæºã¾ã£ã¦ããã®ã§ã¾ã¨ãã¦ããã¾ãã åãªã³ã©ã¤ã³ã¸ã£ãã¸ã®Rubyç°å¢ 2018å¹´12æãããã®æ å ±ã§ãã ãµã¤ã ãã¼ã¸ã§ã³ AtCoder 2.3.3 Codeforces 2.0.0 yukicoder 2.5.3 AOJ 2.4.0 ãã®è¨äºã¯åºæ¬çã«AtCoderã®2.3ç³»ã対象ã«æ¸ãã¦ããã¾ãã Codeforcesã¯ã¡ãã£ã¨ãã¼ã¸ã§ã³ãå¤ãã®ã¨ãå®è¡æéå¶éãããç®ãªã®ã§ç§ã¯Rubyã使ã£ã¦ãã¾ããã å ¥åºåç·¨ åºæ¬çãªå ¥åã N = gets.to_i # åä¸æ´æ° a = gets.split.map(&:to_i) # ã¹ãã¼ã¹ã§åºåãããè¤æ°ã®æ´æ° a = N.times.map{gets.to_i} # 縦ã«ä¸¦ãã è¤æ°ã®æ´æ°ããã¾ã«ãã S = gets.chomp # æååãchompãä»ããªãã¨æ¹è¡æåãã¤ãã¦ãã 以ä¸ã®ãããªå½¢å¼ã®å ¥åãããè¦
{{#tags}}- {{label}}
{{/tags}}