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 08:38anboto1anboto1Error
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 08:390261,719,285240,125,00010,227,0002,117,632expected "1019315 ", got "1019314 "
2Jun 8, 2026 08:390260,590,504241,220,00010,208,0002,117,632expected "1018459 ", got "1018458 "
3Jun 8, 2026 08:397,579259,348,393239,920,00010,206,0002,117,632
4Jun 8, 2026 08:397,591259,735,307240,356,00010,172,0002,117,632
5Jun 8, 2026 08:397,608260,839,187241,360,0009,730,0002,117,632
6Jun 8, 2026 08:397,617260,587,999241,163,00010,230,0002,117,632
7Jun 8, 2026 08:397,684262,785,521243,289,00010,310,0002,117,632
8Jun 8, 2026 08:397,704263,894,427244,421,0009,814,0002,117,632
9Jun 8, 2026 08:397,713263,745,879244,277,00010,276,0002,117,632