Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listJun 8, 2026 13:07anboto1anboto1Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 13:080186,564,483168,105,0009,223,0002,117,632expected "1020664 ", got "1020663 "
2Jun 8, 2026 13:080187,289,817168,650,0009,404,0002,117,632expected "1021675 ", got "1021674 "
3Jun 8, 2026 13:080185,839,316166,897,0009,274,0002,117,632expected "1026429 ", got "1026428 "
4Jun 8, 2026 13:080186,801,292167,994,0009,238,0002,117,632expected "1023937 ", got "1023936 "
5Jun 8, 2026 13:085,358186,217,392167,528,0009,290,0002,117,632
6Jun 8, 2026 13:085,362186,170,357167,677,0009,294,0002,117,632
7Jun 8, 2026 13:085,372186,501,635168,068,0009,221,0002,117,632
8Jun 8, 2026 13:085,387187,007,448168,532,0009,265,0002,117,632
9Jun 8, 2026 13:085,413188,301,642169,317,0009,341,0002,117,632