結果

問題 No.69 文字を自由に並び替え
ユーザー kanaikiyoshikanaikiyoshi
提出日時 2023-07-07 17:09:07
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 309 bytes
コンパイル時間 7,813 ms
コンパイル使用メモリ 253,072 KB
実行使用メモリ 42,368 KB
最終ジャッジ日時 2023-09-28 17:54:03
合計ジャッジ時間 9,920 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
42,324 KB
testcase_01 AC 83 ms
42,124 KB
testcase_02 AC 83 ms
42,072 KB
testcase_03 AC 84 ms
42,256 KB
testcase_04 AC 83 ms
42,072 KB
testcase_05 AC 83 ms
42,120 KB
testcase_06 AC 83 ms
42,200 KB
testcase_07 AC 83 ms
42,324 KB
testcase_08 AC 83 ms
42,124 KB
testcase_09 AC 82 ms
42,368 KB
testcase_10 AC 82 ms
42,324 KB
testcase_11 AC 82 ms
42,164 KB
testcase_12 AC 83 ms
42,136 KB
testcase_13 AC 82 ms
42,244 KB
testcase_14 AC 82 ms
42,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const fs = require('fs')
function main(input: string): void {
    const [input1, input2] = input.split('\n')
    if (input1.split('').sort().join('') === input2.split('').sort().join('')) {
        console.log('YES')
    } else {
        console.log('NO')
    }
}

main(fs.readFileSync('/dev/stdin', 'utf8'))
0