結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2018-02-24 15:38:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 54,876 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 13:52:25 |
合計ジャッジ時間 | 984 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string A, B; cin >> A >> B; for(int i = 0; i < A.length(); ++i) { if((int)B.find(A[i]) == -1) { cout << "NO" << endl; return 0; } B.erase(B.find(A[i])); } cout << "YES" << endl; return 0; }