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