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 06:59anboto1anboto1Error
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 07:000320,292,175300,178,00010,660,0002,117,632expected "1020263 ", got "1020262 "
2Jun 8, 2026 07:000322,953,977302,822,00010,752,0002,117,632expected "1019906 ", got "1019905 "
3Jun 8, 2026 07:009,445321,039,396300,418,00011,282,0002,117,632
4Jun 8, 2026 07:009,511323,670,991303,101,00010,763,0002,117,632
5Jun 8, 2026 07:009,534323,908,832303,228,00011,408,0002,117,632
6Jun 8, 2026 07:009,542324,289,360304,155,00010,741,0002,117,632
7Jun 8, 2026 07:009,555324,607,376304,607,00010,721,0002,117,632
8Jun 8, 2026 07:009,578325,301,140305,210,00010,876,0002,117,632
9Jun 8, 2026 07:009,588325,735,232305,656,00010,764,0002,117,632