結果
| 問題 | No.2035 Tunnel |
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2022-08-16 02:18:22 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 129 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 14,964 KB |
| 最終ジャッジ日時 | 2026-09-09 00:43:39 |
| 合計ジャッジ時間 | 6,566 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 2 TLE * 1 -- * 21 |
コンパイルメッセージ
Main.py:4: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
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