πŸ“¦ YunYouJun / LeetCode

πŸ“„ A.ts Β· 34 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34/* eslint-disable no-console */
/* eslint-disable unicorn/prefer-node-protocol */
import * as process from 'process'
import * as readline from 'readline'

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
})
const input: any[] = []

rl.on('line', (line) => {
  input.push(line)
})

rl.on('close', () => {
  const arrStr = input[0].split(' ')
  const a = Number.parseInt(arrStr[0])
  const b = Number.parseInt(arrStr[1])
  console.log(main(a, b))
})

/**
 * 一衷吃ι₯­
 */
function main(a: number, b: number) {
  if (a === b) {
    return 'Yes'
  }
  else {
    return 'No'
  }
}