結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2024-11-01 11:14:58 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 3,165 ms |
コンパイル使用メモリ | 249,236 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-01 11:15:02 |
合計ジャッジ時間 | 4,457 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;#define rep(i, s, e) for (int i = (int)s; i < (int)e; ++i)#define all(a) (a).begin(), (a).end()const ll mod = 1e9 + 7;int main() {cin.tie(nullptr);string A, B;cin >> A >> B;sort(all(A));sort(all(B));if (A == B) cout << "YES\n";else cout << "NO\n";}