feat(codeforces): 1062 div 4

This commit is contained in:
Barrett Ruth 2025-11-03 14:33:16 -05:00
parent 6fc5131466
commit 7b9271093d
6 changed files with 296 additions and 0 deletions

26
codeforces/1062/2167b.cc Normal file
View file

@ -0,0 +1,26 @@
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
string s, t;
int n;
void solve() {
cin >> n;
cin >> s >> t;
sort(begin(s), end(s));
sort(begin(t), end(t));
if (s == t) {
cout << "YES";
} else {
cout << "NO";
}
cout << '\n';
}
int main() {
int t;
cin >> t;
for (int i = 0; i < t; ++i) {
solve();
}
}