Skip to content

Conversation

@xxarupakaxx
Copy link

よろしくお願いします

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/works.c Outdated
return 0;
}

unsigned int p(int x)

Choose a reason for hiding this comment

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

原因までは特定してないですが,資料中のケースでも正しく動いてません.

@xxarupakaxx
Copy link
Author

レビューありがとうございます
今mainの前にp を定義しました

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 spearが境界値で正しい答えを返していないです.初期値を確認してください.
worksは資料中のケースでも正しい答えを返していないです.

src/apple.c Outdated
}

int lb = 0;
int ub = 100000000;

Choose a reason for hiding this comment

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

足りないです

src/spear.c Outdated
}

int lb = 0;
int ub = 100000000;

Choose a reason for hiding this comment

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

初期値が不適切です

Copy link
Author

Choose a reason for hiding this comment

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

修正しましたありがとうございます

src/works.c Outdated
}

int lb = 0;
int ub = 100000000;

Choose a reason for hiding this comment

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

ここも足りないです.

Copy link
Author

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;

Choose a reason for hiding this comment

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

spear?

Copy link
Author

Choose a reason for hiding this comment

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

修正しましたありがとうございます

@xxarupakaxx
Copy link
Author

修正しましたありがとうございます

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