This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#if ( (defined(__MACH__)) && (defined(__APPLE__)) ) | |
#include <stdlib.h> | |
#include <OpenGL/gl.h> | |
#include <GLUT/glut.h> | |
#include <OpenGL/glext.h> | |
#else | |
#include <stdlib.h> | |
#include <GL/glew.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#if ( (defined(__MACH__)) && (defined(__APPLE__)) ) | |
#include <stdlib.h> | |
#include <OpenGL/gl.h> | |
#include <GLUT/glut.h> | |
#include <OpenGL/glext.h> | |
#else | |
#include <stdlib.h> | |
#include <GL/glew.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Question from hackerrank | |
// Solution by Isla, Joe, and Lyn | |
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; |