E1. String Coloring (easy version)(贪心)

时间:2023-01-15 09:17:08

E1. String Coloring (easy version)

time limit per test

1 second

memory limit per test

256 megabytes

input

standard input

output

standard output

This is an easy version of the problem. The actual problems are

different, but the easy version is almost a subtask of the hard

version. Note that the constraints and the output format are

different.

You are given a string