結果
| 問題 | No.9001 標準入出力の練習問題(テスト用) |
| ユーザー |
|
| 提出日時 | 2017-09-02 04:05:20 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 1,000 ms |
| コード長 | 460 bytes |
| 記録 | |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2026-05-06 22:57:11 |
| 合計ジャッジ時間 | 2,524 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
コンパイルメッセージ
Syntax OK
ソースコード
class StandardIO
attr_reader :a, :b, :s
def initialize(a: 0, b: 0, s: "")
@a, @b, @s = a, b, s
end
def datainput
begin
@a, @b = gets.chomp.split.map { |v| Integer(v) }
@s = gets.chomp
rescue
end
end
def dataoutput
puts [@a+@b, @s].join(" ")
end
def run
datainput
dataoutput
end
end
if $0 == __FILE__
StandardIO.new.run
end