Search found 1 match

by kurniawan1101
Sat Jul 21, 2012 6:49 am
Forum: Volume 114 (11400-11499)
Topic: 11413 - Fill the Containers
Replies: 13
Views: 6663

Re: 11413 - Fill the Containers

can anyone help me with my program? #include <cstdio> #include <cstring> #define MAX 5000005 #define min(a,b) a < b ? a : b int order[MAX]; int cek (int m, int v, int c) { int sum = 0; for (int i = 0; i < v; i ++) { if ((sum + order[i]) <= m) { sum += order[i]; }else { c--, sum = 0, i --; if (c == 0...

Go to advanced search