ABC062A - Grouping
問題:A - Grouping
#include <iostream> using namespace std; int main(void) { const int group[12] = {0, 1, 0, 2, 0, 2 ,0, 0, 2, 0, 2}; int x, y; cin.tie(0); ios::sync_with_stdio(false); cin >> x >> y; cout << (group[x - 1] == group[y - 1]? "Yes" : "No") << "\n"; return 0; }