結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-04 11:48:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,820 KB |
| 最終ジャッジ日時 | 2024-07-06 16:51:21 |
| 合計ジャッジ時間 | 4,200 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 7 TLE * 1 -- * 15 |
ソースコード
S = input()
_max = 0
i = 0
while i < len(S):
if S[i] != 'a':
i += 1
continue
else:
count = 1
for j in range(i+1,len(S)):
if S[j] == 'a':
count += 1
else:
break
if count > _max:_max = count
i = j + 1
for _ in range(_max + 1):
print('a',end='')
print()