結果
問題 | No.495 (^^*) Easy |
ユーザー | yumechi |
提出日時 | 2017-03-24 22:28:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 665 ms |
コンパイル使用メモリ | 82,584 KB |
実行使用メモリ | 77,224 KB |
最終ジャッジ日時 | 2024-07-06 02:56:50 |
合計ジャッジ時間 | 1,051 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
import re def solve(): s = input() print("{0} {1}".format(len(re.findall(r"\(\^\^\*\)", s)), len(re.findall(r"\(\*\^\^\)", s)))) if __name__=="__main__": solve()