Puzzle | Minimum distance for Lizard | CPP program to find minimum distance to be travlled by lizard . ; side of cube ; understand from diagram ; understand from diagram ; minimum distance
#include <bits/stdc++.h> NEW_LINE #define ll  long long int NEW_LINE using namespace std ; int main ( ) { ll a = 5 ; ll AC = a ; ll CE = 2 * a ; double shortestDistace = sqrt ( AC * AC + CE * CE ) ; cout << shortestDistace << endl ; return 0 ; }