結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2020-01-08 06:08:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 778 ms |
コンパイル使用メモリ | 76,944 KB |
最終ジャッジ日時 | 2025-01-08 16:55:47 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>using namespace std;typedef long long int ll;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);string s,t; cin >> s >> t;sort(s.begin(),s.end());sort(t.begin(),t.end());if(s==t){cout << "YES" << endl;}else{cout << "NO" << endl;}}