feat(codeforces): 1062 div 4
This commit is contained in:
parent
6fc5131466
commit
7b9271093d
6 changed files with 296 additions and 0 deletions
26
codeforces/1062/2167b.cc
Normal file
26
codeforces/1062/2167b.cc
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue