よじろめ覚書

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

2019-08-30から1日間の記事一覧

ABC062A - Grouping

ABC

問題: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" : "N</iostream>…