結果

問題 No.1217 せしすせそ
ユーザー donutholedonuthole
提出日時 2020-09-04 21:23:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 746 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-05-04 21:22:22
合計ジャッジ時間 1,234 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
11,392 KB
testcase_01 AC 35 ms
11,392 KB
testcase_02 AC 37 ms
11,264 KB
testcase_03 AC 36 ms
11,392 KB
testcase_04 AC 37 ms
11,392 KB
testcase_05 AC 35 ms
11,392 KB
testcase_06 AC 35 ms
11,264 KB
testcase_07 AC 35 ms
11,264 KB
testcase_08 AC 34 ms
11,392 KB
testcase_09 AC 35 ms
11,392 KB
testcase_10 AC 34 ms
11,392 KB
testcase_11 AC 35 ms
11,264 KB
testcase_12 AC 34 ms
11,264 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