結果

問題 No.69 文字を自由に並び替え
ユーザー lunnear
提出日時 2018-12-11 16:39:45
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 564 ms
コンパイル使用メモリ 54,840 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 03:22:41
合計ジャッジ時間 1,285 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <stdlib.h>
#include <string.h>

int cmp(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main()
{
    char a[11] = {-1};
    char b[11] = {-1};
    
    std::cin >> a >> b;
    
    qsort(a,11,1,cmp);
    qsort(b,11,1,cmp);
    
    
    std::cout << ((strcmp(a, b))? "NO":"YES") << std::endl;
    
    return 0;
}
0