結果
| 問題 |
No.2035 Tunnel
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-28 21:22:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 793 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 53,760 KB |
| 最終ジャッジ日時 | 2024-09-15 23:31:47 |
| 合計ジャッジ時間 | 3,126 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 13 |
ソースコード
def oi(): return int(input())
def os(): return input()
def mi(): return list(map(int, input().split()))
# import sys
# input = sys.stdin.readline
# import sys
# sys.setrecursionlimit(10**8)
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
input_count = 0
input_count = 0
oi()
S = os()
ans = S.count("#")*2
if S[-1]=="#":
ans -= 1
print(ans)