結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
Ronlynes
|
| 提出日時 | 2017-01-29 02:02:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 423 ms |
| コンパイル使用メモリ | 59,128 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 13:38:29 |
| 合計ジャッジ時間 | 1,031 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 1 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main() {
int cnt=0;
string a, b;
cin >> a;
cin >> b;
for(int i=0;i<a.size();i++){
for(int j=0;j<b.size();j++){
if(a[i] == b[j]){
cnt++;
break;
}
}
}
if(cnt == a.size()){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
Ronlynes