結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2016-09-04 22:16:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 696 ms |
コンパイル使用メモリ | 62,320 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 06:21:52 |
合計ジャッジ時間 | 1,170 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include<iostream>#include<algorithm>#include<string>using namespace std;int main(){string str1, str2;cin >> str1 >> str2;sort(str1.begin(),str1.end());sort(str2.begin(),str2.end());if(str1 == str2) cout << "YES" << endl;else cout << "NO" << endl;}