結果

問題 No.1643 Not Substring
ユーザー kimiyukikimiyuki
提出日時 2021-08-13 22:34:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 640 ms
コンパイル使用メモリ 82,600 KB
実行使用メモリ 54,100 KB
最終ジャッジ日時 2024-04-14 19:48:14
合計ジャッジ時間 2,679 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,348 KB
testcase_01 AC 39 ms
54,100 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 41 ms
52,740 KB
testcase_06 WA -
testcase_07 AC 38 ms
52,064 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 38 ms
52,628 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 38 ms
52,464 KB
testcase_23 AC 37 ms
52,956 KB
testcase_24 AC 36 ms
52,948 KB
testcase_25 AC 37 ms
52,284 KB
testcase_26 AC 37 ms
53,552 KB
testcase_27 AC 37 ms
52,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# from typing import *
import itertools

def solve(s: str) -> str:
    for k in itertools.count():
        if 'a' * k not in s:
            return 'a' * k


# generated by oj-template v4.8.0 (https://github.com/online-judge-tools/template-generator)
def main():
    S = input()
    a = solve(S)
    print(a)


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