結果

問題 No.69 文字を自由に並び替え
ユーザー intercept6intercept6
提出日時 2020-09-17 22:11:43
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 7,597 ms
コンパイル使用メモリ 252,904 KB
実行使用メモリ 42,452 KB
最終ジャッジ日時 2023-09-04 07:40:12
合計ジャッジ時間 9,988 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
42,364 KB
testcase_01 AC 81 ms
42,452 KB
testcase_02 AC 81 ms
42,220 KB
testcase_03 AC 81 ms
42,428 KB
testcase_04 AC 80 ms
42,388 KB
testcase_05 AC 81 ms
42,196 KB
testcase_06 AC 80 ms
42,356 KB
testcase_07 AC 81 ms
42,444 KB
testcase_08 AC 81 ms
42,188 KB
testcase_09 AC 80 ms
42,296 KB
testcase_10 AC 80 ms
42,228 KB
testcase_11 AC 80 ms
42,236 KB
testcase_12 AC 80 ms
42,408 KB
testcase_13 AC 83 ms
42,356 KB
testcase_14 AC 81 ms
42,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import { readFileSync } from 'fs';

function Main(input: string) {
  const data = input.split('\n');

  const A = data[0].split('').sort().toString();
  const B = data[1].split('').sort().toString();

  if (A === B) {
    console.log('YES');
  } else {
    console.log('NO');
  }
}

Main(readFileSync('/dev/stdin', 'utf8'));
0