結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2019-10-20 17:22:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 587 ms |
コンパイル使用メモリ | 59,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 17:28:29 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include <iostream> #include <string> #include <algorithm> using namespace std; string s,t; int main(){ cin>>s>>t; sort(s.begin(),s.end()); sort(t.begin(),t.end()); if(s==t)cout<<"YES\n"; else cout<<"NO\n"; return 0; }