結果

問題 No.2035 Tunnel
ユーザー あかしあみどりあかしあみどり
提出日時 2023-02-28 21:54:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 912 ms
コンパイル使用メモリ 86,532 KB
実行使用メモリ 71,996 KB
最終ジャッジ日時 2023-10-14 04:23:26
合計ジャッジ時間 4,226 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,236 KB
testcase_01 AC 72 ms
71,164 KB
testcase_02 AC 72 ms
70,936 KB
testcase_03 AC 71 ms
71,268 KB
testcase_04 AC 73 ms
71,192 KB
testcase_05 AC 72 ms
71,684 KB
testcase_06 AC 72 ms
71,820 KB
testcase_07 WA -
testcase_08 AC 73 ms
71,652 KB
testcase_09 WA -
testcase_10 AC 73 ms
71,660 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 71 ms
70,936 KB
testcase_23 AC 70 ms
71,048 KB
testcase_24 AC 72 ms
71,372 KB
testcase_25 AC 71 ms
71,588 KB
testcase_26 AC 70 ms
71,572 KB
testcase_27 AC 73 ms
71,420 KB
testcase_28 AC 72 ms
71,288 KB
testcase_29 AC 71 ms
71,228 KB
testcase_30 AC 71 ms
71,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0