結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-07 16:20:03 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 5,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 7,898 ms |
| コンパイル使用メモリ | 228,384 KB |
| 実行使用メモリ | 39,552 KB |
| 最終ジャッジ日時 | 2024-12-31 16:55:10 |
| 合計ジャッジ時間 | 9,515 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
const fs = require('fs')
function main(input: string): void {
const [one, two] = input.split('\n')
const oneSorted = one.split('').sort().join('')
const twoSorted = two.split('').sort().join('')
const res = oneSorted === twoSorted
? 'YES'
: 'NO'
console.log(res)
}
main(fs.readFileSync('/dev/stdin', 'utf8'))