結果
| 問題 | No.69 文字を自由に並び替え |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-24 15:49:15 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 624 ms |
| コンパイル使用メモリ | 55,248 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 05:48:25 |
| 合計ジャッジ時間 | 1,269 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 5 |
ソースコード
//No.69 文字を自由に並び替え
#include<string>
#include<iostream>
using namespace std;
int main(){
string A,B;
cin>>A>>B;
int cnt=0;
for(int i=0;i<A.length();i++){
for(int j=0;j<B.length();j++){
if(A[i]==B[j])cnt++;
}
}
if(A.length()==B.length() && cnt==A.length())cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}