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