結果
| 問題 | No.69 文字を自由に並び替え |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-17 22:11:43 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
AC
|
| 実行時間 | 88 ms / 5,000 ms |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 4,675 ms |
| コンパイル使用メモリ | 345,100 KB |
| 実行使用メモリ | 53,084 KB |
| 最終ジャッジ日時 | 2026-06-05 04:46:56 |
| 合計ジャッジ時間 | 7,217 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
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'));