結果
問題 |
No.2035 Tunnel
|
ユーザー |
|
提出日時 | 2023-02-28 21:54:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 53,760 KB |
最終ジャッジ日時 | 2024-09-15 23:51:08 |
合計ジャッジ時間 | 2,925 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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() def solve(S): ans = S.count("#")*2 if S[-1]=="#": ans -= 1 return ans print(solve(S))