시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 220 | 84 | 78 | 45.087% |
In IOI 2018, we will record names of person who enters the arena. The record will consist of uppercase letters of the Latin alphabet and/or lowercase ones. To make it easier to read, you will have to convert uppercase letters on the record to lowercase.
You should implement the following procedure and function:
init(int N)
convert
.N
: the number of names in the record.string convert(string s)
init
is called.s
: the name in the record.s
to lowercase, and return the result t
.init(3)
There are 3 names on the record in this example. Then the grader makes the following procedure calls:
Call | Return |
---|---|
convert("WatanabE") |
"watanabe" |
convert("ITO") |
"ito" |
convert("YamaMoto") |
"yamamoto" |
The files sample-01-in.txt
and sample-01-out.txt
in the zipped attachment package correspond to this example. Other sample inputs/outputs are also available in the package.
번호 | 배점 | 제한 |
---|---|---|
1 | 60 | N ≤ 10 |
2 | 40 | No additional constraints |
The sample grader reads the input in the following format:
The sample grader first calls init(N)
, and then convert(s)
for s
= si (i = 1, 2, ..., N). It prints the return values of convert
in the following format (Now, ti is the return value of convert(s)
for s
= si):
C++17, C++14, C++20, C++14 (Clang), C++17 (Clang), C++20 (Clang)