c#include <bits/stdc++.h> using namespace std; bool isVisit[1001][1001]; int arr[1001][1001]; int main() { cin.tie(0); cout.
#include <bits/stdc++.h> using namespace std; bool isVisit[1001][1001]; int arr[1001][1001]; int main() { cin.tie(0); cout.