結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  koyumeishi | 
| 提出日時 | 2014-11-18 23:21:11 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 350 bytes | 
| コンパイル時間 | 662 ms | 
| コンパイル使用メモリ | 76,068 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-14 05:05:45 | 
| 合計ジャッジ時間 | 1,287 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
int main(){
	string a,b;
	cin >> a >> b;
	sort(a.begin(), a.end());
	sort(b.begin(), b.end());
	cout << (a==b?"YES":"NO") << endl;
	return 0;
}
            
            
            
        