結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-11-18 15:06:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 5,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-12-26 05:24:10 |
| 合計ジャッジ時間 | 1,796 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
def main():
from sys import stdin
readline=stdin.readline
s = input()
t = '…'
ans, cnt = 0, 0
for i in range(len(s)):
if s[i] == t:
cnt += 1
else:
ans = max(ans, cnt)
cnt = 0
ans = max(ans, cnt)
print(ans)
main()
mesame3993