C: 2015 day 03 complete
This commit is contained in:
@@ -37,7 +37,6 @@ int getBoxArea(int l, int w, int h) {
|
||||
|
||||
void part1() {
|
||||
printf("Part 1\n");
|
||||
char str[100];
|
||||
int l, w, h, result = 0;
|
||||
while(scanf("%dx%dx%d", &l, &w, &h) > 0) {
|
||||
result += getBoxSidesArea(l, w, h) + getSmallestSideArea(l, w, h);
|
||||
@@ -47,7 +46,6 @@ void part1() {
|
||||
|
||||
void part2() {
|
||||
printf("Part 2\n");
|
||||
char str[100];
|
||||
int l, w, h, result = 0;
|
||||
while(scanf("%dx%dx%d", &l, &w, &h) > 0) {
|
||||
result += getSmallestPerimeter(l, w, h) + getBoxArea(l, w, h);
|
||||
|
Reference in New Issue
Block a user