-
Notifications
You must be signed in to change notification settings - Fork 171
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
finish #127
base: main
Are you sure you want to change the base?
finish #127
Conversation
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.
array.c
apple.c
spear.c
が正しく動いていません.
src/array.c
Outdated
} | ||
|
||
|
||
lb=0; |
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.
初期値が不適切です.
src/spear.c
Outdated
|
||
|
||
lb=0; | ||
ub=1000000000; |
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.
基礎課題が全て正しい答えを返していないです.
(ざっくり見て気付けた点のみコメントしました.)
|
||
|
||
lb=-1; | ||
ub=n+1; |
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.
初期値が不適切です.
for (int t=0;t<n;t++){ | ||
res+=(A[t]+x-1)/x; | ||
} | ||
return res; |
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.
ここはなにか真偽値を返すべきなのでは?
} | ||
|
||
|
||
lb=-1; |
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.
lbの初期値が改善できます.(number_of_spearでゼロ割が起こります.)
No description provided.