2018NHOI初中 第一题 字符串变换(1)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
给你一个全部由大小写字母组成的字符串, 你每次可以将一个小写字母变换成对应的大写字母,或把一个大写字母变换成对应的小写字母。 请问: 至少要进行多少次变换才可以使整个字符串全部由大写字母或全部由小写字母组成?输入格式
输入共 1 行, 为一个仅由大小写字母组成的字符串。输出格式
输出共 1 行, 1 个整数, 表示至少要变换的次数。NanHaiOI4
提示
【数据范围】对于 100%的数据: 字符串的长度小于等于 10^6。来源
字符串字符串
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 10
- Start at
- 2025-12-25 16:00
- End at
- 2026-1-3 0:00
- Duration
- 200 hour(s)
- Host
- Partic.
- 39