Ok, it seems I need some help in understanding and solving the following problem:
input :
4 (k)
6 3 2 2 2 (n,m,a1,a2,a3)
6 3 3 2 1 (n,m,a1,a2,a3)
4 2 2 2
12 4 6 2 2 2
output :
11
6
Type: Posts; User: Stamatis
Ok, it seems I need some help in understanding and solving the following problem:
input :
4 (k)
6 3 2 2 2 (n,m,a1,a2,a3)
6 3 3 2 1 (n,m,a1,a2,a3)
4 2 2 2
12 4 6 2 2 2
output :
11
6
C++ probably.
Don't ask me. I only started programming a few months ago
But the program as it is doesn't work. Any more sugestions ?
So I have to read the number first and then declare the arrays
like this : (?)
int main ()
{
int n,i,j,k,l,count,count0,co;
bool flag;
FILE *read = fopen("in.txt", "r");
...
Hi all !!
I am currently writing a simple c++ program that computes the convex hull of random given points.
As I don't know mch about programming yet I am trying to use the simple Brute force...