找不同
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.
题目描述
小明有个字符串,每个字符串长度都是,只包含大写字母和。
定义表示第个字符串跟第个字符串有多少个不一样的位置。
现在,对于每一个,小明好奇是多少。也就是跟最不一样的字符串,有多少个位置不一样。
输入格式
第一行输入。
接下来行,每行一个长度为的字符串。
输出格式
输出个数字,每个在单独的一行。
3 2
GG
HH
GH
2
2
1
3 3
GGG
HGH
GHG
2
3
3
数据范围
对于10%的数据:。
对于另20%的数据:。
对于另40%的数据:。
对于100%的数据:。
0127测试
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2026-1-27 8:30
- End at
- 2026-1-27 11:42
- Duration
- 3.2 hour(s)
- Host
- Partic.
- 36