結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
![]() |
提出日時 | 2019-02-21 19:18:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 55,420 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-19 13:42:49 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 1 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string a, b; cin >> a >> b; int c = 0; for (int i = 0; i < a.length(); i++) { for (int j = 0; j < a.length(); j++) { if (a[i] == b[j]) { c++; break; } } } if (c == a.length()) { cout << "YES" << endl; } else { cout << "NO" << endl; } }