結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
|
| 提出日時 | 2017-09-02 04:05:20 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 1,000 ms |
| コード長 | 460 bytes |
| コンパイル時間 | 824 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-06 18:05:31 |
| 合計ジャッジ時間 | 960 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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