Skip to content

Conversation

@tetsushi33
Copy link

No description provided.

@tetsushi33 tetsushi33 closed this Jun 28, 2022
@tetsushi33 tetsushi33 reopened this Jun 28, 2022
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 が正しく動いていません.

scanf("%d", &A[i]);
A_sum = A_sum + A[i];
}
lb = A_sum / k;//バッグのサイズは、(リンゴの総和/バッグの数)を下回らない

Choose a reason for hiding this comment

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

リンゴの総和 = バッグの数の時など危ないのでは.
3 3
1 1 1とか.
(入力に依存しない初期値でokです.)

/* 8.3 槍作り */
#include<stdio.h>

#define N 1000000000;//槍の長さの最大値は木の長さの最大値

Choose a reason for hiding this comment

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

初期値が不適切です.

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