結果

問題 No.495 (^^*) Easy
ユーザー Moss_LocalMoss_Local
提出日時 2021-06-02 19:57:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 526 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,404 KB
最終ジャッジ日時 2024-04-27 13:19:32
合計ジャッジ時間 6,155 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 520 ms
44,404 KB
testcase_01 AC 521 ms
44,276 KB
testcase_02 AC 517 ms
44,268 KB
testcase_03 AC 521 ms
44,272 KB
testcase_04 AC 522 ms
44,152 KB
testcase_05 AC 526 ms
44,268 KB
testcase_06 AC 522 ms
44,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
import math
import re
import queue
import numpy as np
from numpy.linalg import matrix_rank

input = stdin.readline

# MOD = 1000000007
MOD = 998244353
INF = 122337203685477580


def solve():
    s = input()
    res1 = s.count("(^^*)")
    res2 = s.count("(*^^)")
    print(res1,res2)
    
    return


if __name__ == '__main__':
    solve()
0