結果
問題 | No.2035 Tunnel |
ユーザー | あかしあみどり |
提出日時 | 2023-02-28 21:22:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 86,936 KB |
実行使用メモリ | 72,216 KB |
最終ジャッジ日時 | 2023-10-14 04:01:48 |
合計ジャッジ時間 | 5,661 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,220 KB |
testcase_01 | AC | 74 ms
71,156 KB |
testcase_02 | AC | 72 ms
71,284 KB |
testcase_03 | AC | 73 ms
71,348 KB |
testcase_04 | AC | 71 ms
71,540 KB |
testcase_05 | AC | 72 ms
72,072 KB |
testcase_06 | AC | 74 ms
71,932 KB |
testcase_07 | WA | - |
testcase_08 | AC | 74 ms
71,884 KB |
testcase_09 | WA | - |
testcase_10 | AC | 72 ms
72,152 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 | 74 ms
70,996 KB |
testcase_23 | AC | 73 ms
71,160 KB |
testcase_24 | AC | 75 ms
71,836 KB |
testcase_25 | AC | 75 ms
71,872 KB |
testcase_26 | AC | 75 ms
71,660 KB |
testcase_27 | AC | 77 ms
71,820 KB |
testcase_28 | AC | 75 ms
71,228 KB |
testcase_29 | AC | 73 ms
71,348 KB |
testcase_30 | AC | 74 ms
71,280 KB |
ソースコード
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)