結果
| 問題 | No.346 チワワ数え上げ問題 |
| コンテスト | |
| ユーザー |
B9syDOfYhHFXecu
|
| 提出日時 | 2018-11-03 22:54:46 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,123 ms / 2,000 ms |
| + 53µs | |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2026-10-29 16:47:06 |
| 合計ジャッジ時間 | 5,022 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
s = input()
count = 0
for index, word in enumerate(s):
if word == 'c':
count_w = s[index:].count('w')
count += count_w * (count_w - 1) // 2
print(count)
B9syDOfYhHFXecu