よじろめ覚書

私の理解度重視のソースコードです。

ABC086B - 1 21

問題:B - 1 21

#include <cmath>
#include <iostream>
#include <string>
using namespace std;

int main(void) {
    string a, b;
    int n;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;
    n = stoi(a + b);
    cout << (n == (int)sqrt((double)n) * (int)sqrt((double)n)? "Yes" : "No") << "\n";
    return 0;
}