Open
Conversation
nanashima
requested changes
Jul 2, 2022
nanashima
left a comment
There was a problem hiding this comment.
array.c apple.c spear.c works.c が正しく動いていません.
前半2つは逆だと思います.
src/spear.c
Outdated
| } | ||
|
|
||
| lb = 0; | ||
| ub = 1000000000; |
src/works.c
Outdated
| int k; | ||
| int A[100000]; | ||
|
|
||
| int p(int l1,int l2,int l3, int X[]){ |
Author
|
前回の二分探索のプログラムを直したものを提出いたしました。 |
nanashima
reviewed
Jul 15, 2022
src/array.c
Outdated
| } | ||
| return sum > i2; | ||
| int p(int i1,int i2,int X[]){ | ||
| return X[i2] > i1; |
nanashima
requested changes
Jul 15, 2022
src/apple.c
Outdated
| if(p(k,mid,A)) ub = mid; | ||
| else lb = mid; | ||
| lb = 0; | ||
| ub = 1000000001; |
| int p(int i1,int i2,int X[]){ | ||
| return X[i2] > i1; | ||
| int p(int i1, int i2, int i3,int X[]){ | ||
| int sum = i1; |
There was a problem hiding this comment.
(これはただのコメントです)
結果的に式は同じになるのですが,個人的にどういう発想なのか気になりました.
Author
|
改善しました。確認のほどよろしくお願いします。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
終わりました。