0367.cpp (106B)
1 class Solution { 2 public: 3 bool isPerfectSquare(int num) { return pow((int)sqrt(num), 2) == num; } 4 };