結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-06-14 23:37:53 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-12 15:46:35 |
| 合計ジャッジ時間 | 1,614 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 2 |
ソースコード
s = ('a'+input()+'a').split('…')
result, sigh = 0, False
for i in s:
if i == '':
if sigh == True:sub = sub + 1
if sigh == False:sub, sigh = 1, True
else:
if sigh == True:result, sigh = max(result,sub), False
print(result+1)
compass19