回答編集履歴

1

計算逆だったので修正

2018/04/23 23:37

投稿

m.ts10806
m.ts10806

スコア80765

test CHANGED
@@ -98,11 +98,9 @@
98
98
 
99
99
  if($(this).val() != ''){
100
100
 
101
- $(this).parent().next().children('input').val((parseInt($(this).val()) - 100));
101
+ $(this).parent().next().children('input').val(100 - (parseInt($(this).val())));
102
102
 
103
103
  }
104
-
105
-
106
104
 
107
105
  });
108
106