結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2015-10-01 02:47:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 1,422 ms |
コンパイル使用メモリ | 161,764 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:05:20 |
合計ジャッジ時間 | 2,072 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) #define ALL(a) (a).begin(),(a).end() string a, b; signed main() { cin >> a >> b; sort(ALL(a)); sort(ALL(b)); cout << (a==b ? "YES" : "NO") << endl; return 0; }