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 17:09anboto1anboto1Error
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 17:100185,202,773166,725,0009,256,0002,117,632expected "1022086 ", got "1022085 "
2Jun 8, 2026 17:105,249182,531,169164,154,0009,077,0002,117,632
3Jun 8, 2026 17:105,275183,327,608164,899,0009,196,0002,117,632
4Jun 8, 2026 17:105,288184,372,882165,219,0009,315,0002,117,632
5Jun 8, 2026 17:105,290184,353,372165,360,0009,234,0002,117,632
6Jun 8, 2026 17:105,291184,392,253165,356,0009,255,0002,117,632
7Jun 8, 2026 17:105,294184,418,374165,392,0009,313,0002,117,632
8Jun 8, 2026 17:105,312185,035,905165,905,0009,398,0002,117,632
9Jun 8, 2026 17:105,359186,086,268167,596,0009,265,0002,117,632