結果

問題 No.222 引き算と足し算
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-11 20:30:49
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 104 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 15,524 KB
最終ジャッジ日時 2023-09-30 00:53:36
合計ジャッジ時間 4,666 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 WA -
testcase_21 RE -
testcase_22 WA -
testcase_23 WA -
testcase_24 RE -
testcase_25 RE -
testcase_26 WA -
testcase_27 RE -
testcase_28 RE -
testcase_29 WA -
testcase_30 RE -
testcase_31 WA -
testcase_32 RE -
testcase_33 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets.scan(/(-?\d+)([+-])(-?\d+)/).map{|a|
  x=a[0]
  o=(a[1].ord ^ 6).asc
  y=a[2]
  p eval(x + o + y)
}
0