結果
問題 |
No.49 算数の宿題
|
ユーザー |
![]() |
提出日時 | 2016-03-23 13:54:03 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 47 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-23 01:49:59 |
合計ジャッジ時間 | 1,685 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
class Fixnum def *(arg) self - (-arg) end def +(arg) tmp = self (arg-1).times{ tmp += self } tmp end end class Yukicoder def initialize s = gets.chomp puts eval(s).to_i end end Yukicoder.new