よじろめ覚書

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

ABC035A - テレビ

問題:
A - テレビ

#include <iostream>
using namespace std;

int main(void) {
    int w, h;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> w >> h;
    cout << (w * 3 == h * 4? "4:3" : "16:9") << "\n";
    return 0;
}

4と3で割り切れたら、4:3と表示するようにしていて、
よく見ると16:9も4:3となって早とちり1WA。