よじろめ覚書

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

2019-10-19から1日間の記事一覧

ABC086B - 1 21

ABC

問題: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>…

ABC086A - Product

ABC

問題: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>