結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2019-03-10 13:53:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 552 bytes |
コンパイル時間 | 851 ms |
コンパイル使用メモリ | 78,004 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 07:22:37 |
合計ジャッジ時間 | 1,497 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include <iostream> #include <stdio.h> #include <cmath> #include <algorithm> #include <vector> #define FOR(i, a, b) for (int i = a; i < b; i++) #define FORN(i, a, b) for (int i = a; i <= b; i++) #define P(s) cout << s << endl #define PC(condition, _true, _false) if (condition) _true; else _false; #define toInt(_char) _char - '0' using namespace std; // // Created by karayuu on 2018-12-18. // int main() { string a, b; cin >> a; cin >> b; sort(a.begin(), a.end()); sort(b.begin(), b.end()); a == b ? P("YES") : P("NO"); }