結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2019-03-15 13:12:34 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 393 bytes |
コンパイル時間 | 692 ms |
コンパイル使用メモリ | 67,724 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-14 07:22:39 |
合計ジャッジ時間 | 1,264 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include <iostream> #include <cmath> #include <vector> #include <algorithm> #define print(x) cout << x << endl; using namespace std; int main(void){ cin.tie(0); ios::sync_with_stdio(false); string A,B; cin >> A >> B; sort(A.begin(), A.end()); sort(B.begin(), B.end()); if(A==B){ print("YES"); }else{ print("NO"); } return 0; }