結果
問題 | No.457 (^^*) |
ユーザー |
|
提出日時 | 2017-02-09 13:56:12 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 772 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 1,671 ms |
コンパイル使用メモリ | 76,416 KB |
実行使用メモリ | 78,208 KB |
最終ジャッジ日時 | 2024-12-25 22:10:08 |
合計ジャッジ時間 | 7,300 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#yuki_457 def f(ss): res=0 for i in xrange(len(s)): k=0 if s[i]!='(': continue for j in xrange(i+1,len(s)): if s[j]==ss[k%3]: k+=1 if s[j]==')' and k>=3: res+=1 return res s=raw_input() print f('^^*'),f('*^^')