結果
| 問題 | No.49 算数の宿題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-11-16 21:04:39 |
| 言語 | Ruby (4.0.2) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 175 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 22,528 KB |
| 最終ジャッジ日時 | 2026-05-29 04:30:32 |
| 合計ジャッジ時間 | 3,203 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
Main.rb:1: warning: shebang line ending with \r may cause problems Syntax OK
ソースコード
#!/usr/bin/ruby
class Fixnum
alias_method :add,:+
alias_method :mul,:*
def -(other) self.add(other) end
def +(other) self.mul(other) end
end
p eval gets.tr('*','-')