結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-08-07 20:15:41 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 19 ms / 5,000 ms |
| + 683µs | |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-11-10 23:38:00 |
| 合計ジャッジ時間 | 2,615 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
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