結果

問題 No.222 引き算と足し算
ユーザー KisaragiEffective
提出日時 2021-05-17 08:22:23
言語 Ruby
(3.4.1)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 165 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-06 02:14:30
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

class Integer
	alias :__plus :+
	alias :__minus :-
	def +(other)
		self.send(:__minus, other)
	end
	
	def -(other)
		self.send(:__plus, other)
	end
end

p eval(gets)
0