結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
|
提出日時 | 2019-04-17 16:13:08 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 1,239 bytes |
コンパイル時間 | 1,021 ms |
コンパイル使用メモリ | 88,552 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 07:24:55 |
合計ジャッジ時間 | 1,531 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
#include<iostream> #include<cmath> #include<vector> #include<set> #include<algorithm> #include<tuple> #include<utility> #include<cctype> #include<climits> #include<map> #include<queue> #include<functional> #include<stack> #include<iomanip> #include<sstream> #include<bitset> using namespace std; #define REP(i,a,n) for(int i=a;i<n;++i) #define REPL(i,a,n) for(ll i=a;i<n;++i) #define RUP(a,b) ((a+b-1)/(b)) #define ENT "\n" #define SORTVG(v) sort(v.begin(),v.end(),greater<>()) #define SORTV(v) sort(v.begin(),v.end()) #define ALL(v) (v).begin(),(v).end() #define MOD 1000000007 #define INF LLONG_MAX/2 typedef long long ll; typedef tuple<int,int,bool> Tb; typedef pair<int,int> Pii; typedef vector<int> Vi; template<class T> void chmax(T& a, T b) {if(a < b){a=b;}} template<class T> void chmin(T& a, T b) {if(a > b){a=b;}} template<class T> void YesNo(T& a) {if(a){cout << "Yes" << ENT;}else{cout << "No" << ENT;}} template<class T> void YESNO(T& a) {if(a){cout << "YES" << ENT;}else{cout << "NO" << ENT;}} int atcoder(){ string s,t; cin>>s>>t; SORTV(s); SORTV(t); bool ans=(s==t); YESNO(ans); return 0; } signed main() { cin.tie(0); ios::sync_with_stdio(false); atcoder(); return 0; }