結果

問題 No.69 文字を自由に並び替え
ユーザー mondo
提出日時 2019-08-25 22:58:31
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 65 ms / 5,000 ms
コード長 406 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-10-13 01:24:30
合計ジャッジ時間 1,553 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

const main = require('fs').readFileSync('/dev/stdin','utf8').trim();
// console.log(main);
const array = main.split("\n");
// console.log(array);
const moji1 = array[0].split("");
const moji2 = array[1].split("");
moji1.sort();
moji2.sort();
// console.log(moji1);
var result =JSON.stringify(moji1) === JSON.stringify(moji2);
if (result === true) {
    console.log("YES");
} else {
    console.log("NO");
}
0