結果

問題 No.69 文字を自由に並び替え
ユーザー soy
提出日時 2019-07-28 15:42:39
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 59,220 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-02 15:02:33
合計ジャッジ時間 902 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	char a[10], b[10],i;
	int ans=0;
	cin >> a >> b;
	sort(a,a+9);
	sort(b, b + 9);
	for (i = 0; i < 10; i++) {
		if (a[i] != b[i]) {
			ans=1;
		}
	}
	if (ans)
		cout << "NO";
	else
	cout << "YES\n";
		return 0;
}
0