メモ化再帰

AtCoder abc300 参加メモ

ユニークビジョンプログラミングコンテスト2023 春 (AtCoder Beginner Contest 300) - AtCoder B - Same Map in the RPG World H,W <= 30 のため 縦方向 shift と横方向 shift を全探索できる #include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define endl '\n' int main() { int h,w; cin ></n;i++)></bits/stdc++.h>…