Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat duels/566

Duel #566

A 1v1 battle on the problem «Number of distinct letters».

@sojida_otaqulova · Elo: 1257 (-15) · Pupil
No attempts
Tests: 0/20 (0%)
BATTLE OVER Winner: Malika Sharipova Solved in 2 min 6 s
Pupil · Elo: 1307 (+15) · @malikaxanim_08
1st place · 2 min 6 s
Tests: 20/20 (100%)

Winner: Malika Sharipova

The winner was the first to solve it correctly — in 2 min 6 s.

String-23 String Easy 1000 ms 128 MB

Number of distinct letters

A string $s$ of lowercase Latin letters is given. Find how many distinct letters occur in it.

Finding the set of distinct letters of the string

Sample tests

Input #1
banana
Output #1
3
Input #2
abcabc
Output #2
3

Battle results compared

1v1 report
Sojida Otaqulova
@sojida_otaqulova
Not solved
Malika Sharipova
@malikaxanim_08
Winner (1st place)
— Solve time 02:06
0 Submissions 1
— Language C++ (GCC 15)
— Run time 3 ms

Submission timeline (1)

All submissions
M Malika Sharipova +02:06
WIN Accepted
C++ (GCC 15) · 3 ms · 4.1 MB

Malika Sharipova won

The 1v1 battle ended after a hard fight.

S Sojida Otaqulova
Solution: Not solved
Rating: 1257 (-15)
M Malika Sharipova
Solution: 2 min 6 s
Rating: 1307 (+15)
RIVAL FOUND!

1v1 DUEL IS STARTING

Sojida Otaqulova 1272 Elo
VS 15 minutes
Malika Sharipova 1307 Elo

Loading the arena...