結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
nyan68682154
|
| 提出日時 | 2019-05-15 07:25:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 457 bytes |
| コンパイル時間 | 750 ms |
| コンパイル使用メモリ | 58,844 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-13 12:59:15 |
| 合計ジャッジ時間 | 1,250 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 1 |
ソースコード
#include<iostream>
#include<string>
#include<math.h>
#include<stdlib.h>
#include<string>
using namespace std;
int main() {
string a;
string b;
int n;
int f = 0;
cin >> a >> b;
n = a.size();
for (int i = 0; i <= n - 1; i++) {
for (int j = 0; j <= n - 1; j++) {
if (a[i] == b[j]) {
if (i == n - 1) {
cout << "YES";
}
break;
}
else if (j == n -1) {
cout << "NO";
f = 1;
}
}
if (f == 1) {
break;
}
}
}
nyan68682154