結果

問題 No.1643 Not Substring
ユーザー tassei903tassei903
提出日時 2021-08-13 21:29:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 510 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 54,104 KB
最終ジャッジ日時 2024-04-14 19:36:24
合計ジャッジ時間 2,228 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,440 KB
testcase_01 AC 37 ms
52,712 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 39 ms
51,996 KB
testcase_06 WA -
testcase_07 AC 38 ms
52,892 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 38 ms
52,336 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 37 ms
52,056 KB
testcase_23 AC 37 ms
53,120 KB
testcase_24 AC 38 ms
52,868 KB
testcase_25 AC 38 ms
51,948 KB
testcase_26 AC 37 ms
52,552 KB
testcase_27 AC 38 ms
53,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
s = input()
z = 0
c = 0
for i in s:
    if i=="a":
        c += 1
        z = max(c,z)
    else:
        c = 0
print("a"*(z+1))
0