結果

問題 No.69 文字を自由に並び替え
ユーザー kakeyamay
提出日時 2019-06-29 07:32:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 196,576 KB
最終ジャッジ日時 2025-01-07 05:38:28
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main() {
	
	std::string A,B;
	std::cin >> A >> B;
	std::sort(begin(A),end(A));
	std::sort(begin(B),end(B));
	bool ans = A==B;
	std::cout<<(ans?"YES":"NO")<<std::endl;
}
0