結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
re1ns
|
| 提出日時 | 2015-11-06 21:38:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 64,968 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-14 06:06:50 |
| 合計ジャッジ時間 | 1,181 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
#include<iostream>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string s1,s2;
cin >> s1 >> s2;
sort(s1.begin(),s1.end());
sort(s2.begin(),s2.end());
if(s1==s2)cout << "YES" << endl;
else cout << "NO";
}
re1ns