Moved kattis from Uni repo
This commit is contained in:
13
kattis/problems/01_11_23/pieceofcake/main.c
Normal file
13
kattis/problems/01_11_23/pieceofcake/main.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int n, h, v;
|
||||
scanf("%d %d %d", &n, &h, &v);
|
||||
|
||||
int max_h = h > n - h ? h : n - h;
|
||||
int max_v = v > n - v ? v : n - v;
|
||||
|
||||
printf("%d\n", max_h * max_v * 4);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user