結果
問題 |
No.346 チワワ数え上げ問題
|
ユーザー |
![]() |
提出日時 | 2016-09-07 00:50:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,680 KB |
最終ジャッジ日時 | 2024-11-15 21:01:55 |
合計ジャッジ時間 | 15,095 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 TLE * 3 |
ソースコード
import re def main(): S = input() result = 0 for idx in [x.start() for x in re.finditer(r'c', S)]: result += sum(range(len(re.findall('w', S[idx + 1:])))) print(result) if __name__ == '__main__': main()