結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-08-07 20:15:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-17 12:35:57 |
| 合計ジャッジ時間 | 1,138 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
s=list(input())
n=len(s)
ans=0
tmp=0
chk=False
for i in s:
if chk:
if i=="…":
tmp+=1
else:
ans=max(ans,tmp)
tmp=0
chk=False
else:
if i=="…":
tmp=1
chk=True
else:
continue
ans=max(ans,tmp)
print(ans)
nohakai3