結果

問題 No.1217 せしすせそ
ユーザー donutholedonuthole
提出日時 2020-09-04 21:23:46
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 746 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 10,820 KB
実行使用メモリ 9,188 KB
最終ジャッジ日時 2023-08-17 14:46:12
合計ジャッジ時間 1,411 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
9,020 KB
testcase_01 AC 23 ms
9,108 KB
testcase_02 AC 23 ms
9,060 KB
testcase_03 AC 23 ms
9,188 KB
testcase_04 AC 24 ms
9,088 KB
testcase_05 AC 23 ms
9,088 KB
testcase_06 AC 24 ms
9,000 KB
testcase_07 AC 24 ms
9,040 KB
testcase_08 AC 23 ms
9,004 KB
testcase_09 AC 24 ms
9,008 KB
testcase_10 AC 24 ms
9,068 KB
testcase_11 AC 23 ms
9,008 KB
testcase_12 AC 23 ms
9,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
import collections
import bisect
import itertools
import decimal
import copy

# import numpy as np

# sys.setrecursionlimit(10 ** 6)
INF = 10 ** 20
MOD = 10 ** 9 + 7
# MOD = 998244353

ni = lambda: int(sys.stdin.readline().rstrip())
ns = lambda: map(int, sys.stdin.readline().rstrip().split())
na = lambda: list(map(int, sys.stdin.readline().rstrip().split()))
na1 = lambda: list(map(lambda x: int(x) - 1, sys.stdin.readline().rstrip().split()))


# ===CODE===


def main():
    s = input()
    c = ord("a")

    for i, si in enumerate(s):
        if si != chr(c + i):
            before = chr(c + i)
            after = si
            print(before + "to" + after)
            break


if __name__ == '__main__':
    main()
0