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 10:50anboto1anboto1Error
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 10:500191,229,934172,724,0009,264,0002,117,632expected "1020857 ", got "1020854 "
2Jun 8, 2026 10:500191,912,323173,313,0009,390,0002,117,632expected "1025075 ", got "1025074 "
3Jun 8, 2026 10:505,469189,830,140171,353,0009,132,0002,117,632
4Jun 8, 2026 10:505,479190,112,783171,492,0009,337,0002,117,632
5Jun 8, 2026 10:505,480190,185,574171,647,0009,222,0002,117,632
6Jun 8, 2026 10:505,495190,585,357172,081,0009,262,0002,117,632
7Jun 8, 2026 10:505,531191,824,589173,356,0009,184,0002,117,632
8Jun 8, 2026 10:505,562193,308,019174,168,0009,383,0002,117,632
9Jun 8, 2026 10:505,587193,565,077175,050,0009,346,0002,117,632