0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

paiza.ioでruby その4

Last updated at Posted at 2025-11-18

概要

paiza.ioでrubyやってみた。
atcoder、見つけたのでやってみた。

参考にしたページ

練習問題

PracticeA - Welcome to AtCoder
3つの整数値と文字列を1つ受け取り、整数値の和と文字列を一行に出力する問題です。

投入するデータ

1
2
3
hello

期待値

6 hello

サンプルコード

a, b, c, d = `dd`.split
puts '%d %s' % [a.to_i + b.to_i + c.to_i, d]

実行結果

6 hello

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?