{"blog_url":"https://tic40.hatenablog.com/","provider_url":"https://hatena.blog","width":"100%","version":"1.0","provider_name":"Hatena Blog","url":"https://tic40.hatenablog.com/entry/2023/10/09/230428","author_name":"tic40","categories":["AtCoder","ARC"],"title":"AtCoder arc166 A - Replace C or Swap AB","blog_title":"Do Something","type":"rich","image_url":null,"published":"2023-10-09 23:04:28","description":"A - Replace C or Swap AB \u516c\u5f0f\u89e3\u8aac \u3092\u5143\u306b\u89e3\u3044\u305f\u306e\u3067\u30e1\u30e2\u3002 \u89e3\u8aac\u3092\u898b\u3066\u3082\u306a\u304b\u306a\u304b\u30b7\u30e5\u30c3\u3068\u5b9f\u88c5\u3067\u304d\u306a\u304f\u3066\u96e3\u3057\u3044 #include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define endl '\\n' int main() { int t; cin >> t; REP(_,t) { int n; string x,y; cin >> n >> x >> y; x += 'C'; y += 'C'; // \u756a\u5175 n++; // \u756a\u5175\u5206\u3092 +1 map<char,\u2026","author_url":"https://blog.hatena.ne.jp/tic40/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftic40.hatenablog.com%2Fentry%2F2023%2F10%2F09%2F230428\" title=\"AtCoder arc166 A - Replace C or Swap AB - Do Something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}