結果

問題 No.2035 Tunnel
ユーザー KudeKude
提出日時 2022-08-12 21:36:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 81,592 KB
実行使用メモリ 75,924 KB
最終ジャッジ日時 2023-10-24 08:43:12
合計ジャッジ時間 2,863 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,360 KB
testcase_01 AC 36 ms
53,360 KB
testcase_02 AC 36 ms
53,360 KB
testcase_03 AC 35 ms
53,360 KB
testcase_04 AC 36 ms
53,360 KB
testcase_05 AC 61 ms
75,836 KB
testcase_06 AC 58 ms
75,832 KB
testcase_07 AC 57 ms
75,924 KB
testcase_08 AC 53 ms
75,732 KB
testcase_09 AC 45 ms
60,480 KB
testcase_10 AC 46 ms
60,508 KB
testcase_11 AC 56 ms
75,548 KB
testcase_12 AC 59 ms
75,796 KB
testcase_13 AC 44 ms
61,572 KB
testcase_14 AC 46 ms
65,668 KB
testcase_15 AC 57 ms
75,640 KB
testcase_16 AC 49 ms
72,380 KB
testcase_17 AC 42 ms
59,516 KB
testcase_18 AC 44 ms
61,572 KB
testcase_19 AC 46 ms
65,668 KB
testcase_20 AC 55 ms
75,560 KB
testcase_21 AC 45 ms
67,704 KB
testcase_22 AC 47 ms
67,708 KB
testcase_23 AC 43 ms
61,560 KB
testcase_24 AC 48 ms
70,196 KB
testcase_25 AC 49 ms
72,396 KB
testcase_26 AC 48 ms
72,340 KB
testcase_27 AC 55 ms
75,684 KB
testcase_28 AC 46 ms
67,704 KB
testcase_29 AC 43 ms
61,560 KB
testcase_30 AC 42 ms
61,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()[::-1]
last = -2
for i, c in enumerate(s):
    if c == '#':
        last = max(i, last + 2)
print(last + 1)
0