2019-10-19から1日間の記事一覧
問題: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</string></iostream></cmath>…
問題:A - Product #include <iostream> using namespace std; int main(void) { int a, b; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b; cout << ((a * b) % 2? "Odd" : "Even") << "\n"; return 0; }</iostream>