-
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
演習課題 #150
base: main
Are you sure you want to change the base?
演習課題 #150
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.
apple.c
spear.c
works.c
が正しく動いていません.
src/works.c
Outdated
|
||
return 0; | ||
} | ||
|
||
unsigned int p(int x) |
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.
apple
spear
が境界値で正しい答えを返していないです.初期値を確認してください.
works
は資料中のケースでも正しい答えを返していないです.
src/apple.c
Outdated
scanf("%d", &A[i]); | ||
} | ||
|
||
int lb = 0; | ||
int ub = 100000000; |
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
scanf("%d", &A[i]); | ||
} | ||
|
||
int lb = 0; | ||
int ub = 100000000; |
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.
修正しましたありがとうございます
src/works.c
Outdated
scanf("%d", &A[i]); | ||
} | ||
|
||
int lb = 0; | ||
int ub = 100000000; |
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.
修正しましたありがとうございます
src/works.c
Outdated
sum += A[i] / x; | ||
} | ||
|
||
return sum < k; |
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.
spear?
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.
修正しましたありがとうございます
修正しましたありがとうございます |
よろしくお願いします