-
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
提出 #184
base: main
Are you sure you want to change the base?
提出 #184
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/apple.c
Outdated
@@ -12,6 +19,14 @@ int main(){ | |||
scanf("%d", &A[i]); | |||
} | |||
|
|||
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.
初期値を改善できます.
これだと最悪p
で0割りが起こります.
src/spear.c
Outdated
int main(){ | ||
int i, lb, ub; | ||
scanf("%d%d", &n, &k); | ||
for(i = 0; i < n; i++){ | ||
scanf("%d", &A[i]); | ||
} | ||
|
||
lb = -1; | ||
ub = 1e9; |
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
ub
共に見直しましょう.
src/works.c
Outdated
@@ -12,6 +29,14 @@ int main(){ | |||
scanf("%d", &A[i]); | |||
} | |||
|
|||
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.
改善できます.
修正しました |
git addをし忘れていることに気が付かず悪戦苦闘していたら時間を少し過ぎてしまいました...。
完全に自己責任でありおこがましいことは承知ですが、採点していただけると嬉しいです。