結果

問題 No.1217 せしすせそ
ユーザー Keiya Watanabe
提出日時 2020-09-12 06:03:20
言語 JavaScript
(node v23.5.0)
結果
RE  
実行時間 -
コード長 333 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 39,552 KB
最終ジャッジ日時 2024-12-30 04:47:37
合計ジャッジ時間 3,673 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import { createInterface } from 'readline'


async function main() {
    const input = await new Promise(res => createInterface(process.stdin, process.stdout).once('line', res));
    const list = 'abcdefghijklmnopqrstuvwxyz'
    const i = list.findIndex((c, i) => c !== input[i])

    console.log(`${list[i]}to${input[i]}`)
}

main()
0