結果
問題 | No.49 算数の宿題 |
ユーザー |
|
提出日時 | 2014-11-16 21:04:39 |
言語 | Ruby (3.4.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 262 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-12-23 01:42:42 |
合計ジャッジ時間 | 1,921 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 10 |
コンパイルメッセージ
ruby: warning: shebang line ending with \r may cause problems Syntax OK
ソースコード
#!/usr/bin/rubyclass Fixnumalias_method :add,:+alias_method :mul,:*def -(other) self.add(other) enddef +(other) self.mul(other) endendp eval gets.tr('*','-')