結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-17 22:11:43 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 5,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 8,147 ms |
| コンパイル使用メモリ | 230,252 KB |
| 実行使用メモリ | 41,332 KB |
| 最終ジャッジ日時 | 2024-12-31 16:21:16 |
| 合計ジャッジ時間 | 9,973 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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'));