結果

問題 No.69 文字を自由に並び替え
ユーザー kazutaka-machida
提出日時 2023-07-07 17:30:29
言語 TypeScript
(5.7.2)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 8,341 ms
コンパイル使用メモリ 230,084 KB
実行使用メモリ 41,580 KB
最終ジャッジ日時 2024-12-31 17:01:06
合計ジャッジ時間 9,203 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input: string) {
  const inputs = input.split("\n");
  let a = inputs[0].split('')
  let b = inputs[1].split('')
  a.sort()
  b.sort()
  
  if (a === b) {
	console.log('YES')	
  } else {
  	console.log('NO')
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0