結果

問題 No.1217 せしすせそ
ユーザー Keiya WatanabeKeiya Watanabe
提出日時 2020-09-12 06:44:34
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 42,660 KB
最終ジャッジ日時 2023-08-28 21:17:59
合計ジャッジ時間 2,353 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
42,404 KB
testcase_01 AC 87 ms
42,408 KB
testcase_02 AC 88 ms
42,348 KB
testcase_03 AC 86 ms
42,252 KB
testcase_04 AC 85 ms
42,616 KB
testcase_05 AC 85 ms
42,608 KB
testcase_06 AC 85 ms
42,388 KB
testcase_07 AC 85 ms
42,416 KB
testcase_08 AC 87 ms
42,468 KB
testcase_09 AC 85 ms
42,456 KB
testcase_10 AC 85 ms
42,660 KB
testcase_11 AC 88 ms
42,444 KB
testcase_12 AC 89 ms
42,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const { createInterface: ci } = require('readline')

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

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