結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-09-07 07:51:16 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 467 bytes | 
| コンパイル時間 | 1,898 ms | 
| コンパイル使用メモリ | 170,796 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-26 00:59:07 | 
| 合計ジャッジ時間 | 2,548 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
ソースコード
/**
  @file 069.cpp
  @title  No.69 文字を自由に並び替え - yukicoder
  @url https://yukicoder.me/problems/no/69
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define ALL(obj) (obj).begin(), (obj).end()
#define REP(i, N) for (int i = 0; i < (N); ++i)
int main() {
  string A, B;
  cin >> A >> B;
  sort(ALL(A));
  sort(ALL(B));
  if (A == B) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
            
            
            
        