結果
問題 | No.2035 Tunnel |
ユーザー |
![]() |
提出日時 | 2022-08-16 02:17:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 122 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-10-02 14:12:32 |
合計ジャッジ時間 | 4,730 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 1 -- * 21 |
コンパイルメッセージ
Main.py:4: SyntaxWarning: invalid escape sequence '\.' print(len(s)+1+sum([i.count("#")-i.count(".")for i in re.findall("\.*#+",s)]))
ソースコード
import re input() s=input().lstrip(".")[1:] print(len(s)+1+sum([i.count("#")-i.count(".")for i in re.findall("\.*#+",s)]))