-
Notifications
You must be signed in to change notification settings - Fork 7
add 二次方程式 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add 二次方程式 #4
Conversation
こんにちは。 |
了解 |
pages/quadratic-equation.tsx
Outdated
|
||
const filteredAnswers = parsedIntAnswers.filter(answer => answer !== null) as number[] | ||
|
||
if (answers.some(answer => filteredAnswers.includes(answer))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
順序を無視して採点する為に どちらかが正解なら通すようにしてしまってますね…
他の採点方法に切り替えます
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pages/quadratic-equation.tsx
Outdated
解を求めよ | ||
</MathJax.Provider> | ||
<div> | ||
<input className={styles.textbox} placeholder="x1 , x2" type="text" value={ans} onChange={(e) => { setAns(e.target.value) }} inputMode="numeric"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほど、、
実装します。
修正点 |
@EdamAme-x ラムダのコメントに基づいて、こちらのPRを以下のように変更してもらうことは可能でしょうか?
また、今回実装した分は素晴らしいものでそのまま捨てるのはもったいないと思っています。
|
なるほど。 そろそろ寝るので申し訳無いです。 |
ありがとうございます。 |
前回のPRにて指摘された内容を参考にし、修正。
API等の型定義は、H-gotoさんの
リファクタリングにより解決していただきました。