結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2018-02-24 15:38:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 56,344 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 13:52:20 |
合計ジャッジ時間 | 1,037 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 11 |
ソースコード
#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 << "y " << A << endl << "y " << B << endl; } cout << "YES" << endl; return 0; }