結果

問題 No.2460 #強調#
ユーザー moharan627moharan627
提出日時 2023-09-08 21:21:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 644 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 8,484 KB
最終ジャッジ日時 2023-09-08 21:22:11
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,384 KB
testcase_01 AC 19 ms
8,396 KB
testcase_02 AC 18 ms
8,484 KB
testcase_03 AC 18 ms
8,412 KB
testcase_04 AC 18 ms
8,388 KB
testcase_05 AC 19 ms
8,484 KB
testcase_06 AC 18 ms
8,428 KB
testcase_07 AC 19 ms
8,340 KB
testcase_08 AC 18 ms
8,344 KB
testcase_09 AC 19 ms
8,412 KB
testcase_10 AC 19 ms
8,400 KB
testcase_11 AC 19 ms
8,368 KB
testcase_12 AC 18 ms
8,372 KB
testcase_13 AC 18 ms
8,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10**9 + 7
MOD2 = 998244353
from collections import defaultdict
def ceil(A,B):
    return -(-A//B)
def solve():
    def II(): return int(sys.stdin.readline())
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(sys.stdin.readline().rstrip())
    def IC(): return [int(c) for c in sys.stdin.readline().rstrip()]
    def MI(): return map(int, sys.stdin.readline().split())
    S = input()
    out = 0
    for s in S:
        if(s=="#"):
            out = 1-out
        elif(out):
            print(s,end="")
    print()
    return
solve()
0