Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

提出 #184

wants to merge 4 commits into from

Conversation

nulltou
Copy link

@nulltou nulltou commented Jun 28, 2022

git addをし忘れていることに気が付かず悪戦苦闘していたら時間を少し過ぎてしまいました...。
完全に自己責任でありおこがましいことは承知ですが、採点していただけると嬉しいです。

Copy link

@nanashima nanashima left a 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;

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;

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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改善できます.

@nulltou
Copy link
Author

nulltou commented Aug 9, 2022

修正しました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants