結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
_yoshih_
|
| 提出日時 | 2018-09-30 21:58:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 640 ms |
| コンパイル使用メモリ | 71,648 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 07:11:46 |
| 合計ジャッジ時間 | 1,300 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
static void setup()
{
cin.tie(0);
ios::sync_with_stdio(false);
}
static void run()
{
string a, b;
cin >> a >> b;
std::sort(begin(a), end(a));
std::sort(begin(b), end(b));
const auto same = a == b;
cout << (same ? "YES" : "NO") << endl;
}
int main(int argc, char **argv)
{
setup();
run();
return 0;
}
_yoshih_