結果

問題 No.69 文字を自由に並び替え
ユーザー kaito_tateyama
提出日時 2017-08-07 18:35:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 54,748 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 13:49:29
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {

  string a,b;
  cin >> a >> b;
  int count = a.size();
  for (int i = 0; i < count; i++) {
    char c = a[i];
    if (b.find(c) == string::npos) {
      cout << "NO" << "\n";
      break;
    }
  }

  return 0;
}
0