-
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
提出 #169
base: main
Are you sure you want to change the base?
提出 #169
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
works.c
が正しく動いていません.
特に,spear.c
works.c
は二分探索部分やp
の中身も確認した方が良いと思います,
lb=-1; | ||
ub=n; | ||
while(ub-lb>1){ | ||
int mid =(lb +ub/2); |
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=0; | ||
ub=1000000000; | ||
while(ub-lb>1){ | ||
int mid =(lb +ub/2); |
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=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.
初期値が不適切です.
lb=0; | ||
ub=1000000000; | ||
while(ub-lb>1){ | ||
int mid =(lb +ub/2); |
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.
ここもです.
No description provided.