結果

問題 No.1217 せしすせそ
ユーザー Keiya WatanabeKeiya Watanabe
提出日時 2020-09-12 06:39:13
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 42,580 KB
最終ジャッジ日時 2023-08-28 20:55:26
合計ジャッジ時間 2,760 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
42,484 KB
testcase_01 AC 81 ms
42,500 KB
testcase_02 AC 80 ms
42,540 KB
testcase_03 AC 80 ms
42,276 KB
testcase_04 AC 79 ms
42,276 KB
testcase_05 AC 79 ms
42,436 KB
testcase_06 AC 80 ms
42,540 KB
testcase_07 AC 80 ms
42,340 KB
testcase_08 AC 80 ms
42,420 KB
testcase_09 AC 80 ms
42,576 KB
testcase_10 AC 81 ms
42,488 KB
testcase_11 AC 80 ms
42,384 KB
testcase_12 AC 81 ms
42,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const { createInterface } = require('readline')

const main = async () => {
    const input = await new Promise(res => createInterface(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