結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2016-08-16 16:45:51 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-11-07 18:16:25 |
合計ジャッジ時間 | 889 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
# -*- coding: utf-8 -*-import mathS = raw_input().decode("utf-8")cnt = 0ans = 0for s in S:if s==u"…":cnt += 1else:ans = max(ans,cnt)cnt = 0ans = max(ans,cnt)print ans