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 09:58anboto1anboto1Error
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 09:590191,976,988173,533,0009,242,0002,117,632expected "1025329 ", got "1025327 "
2Jun 8, 2026 09:595,489190,449,069171,847,0009,316,0002,117,632
3Jun 8, 2026 09:595,490190,455,306172,033,0009,165,0002,117,632
4Jun 8, 2026 09:595,518191,387,519173,013,0009,108,0002,117,632
5Jun 8, 2026 09:595,528191,809,222173,111,0009,319,0002,117,632
6Jun 8, 2026 09:595,541192,638,107173,638,0009,228,0002,117,632
7Jun 8, 2026 09:595,543192,178,995173,542,0009,397,0002,117,632
8Jun 8, 2026 09:595,572193,109,236174,605,0009,297,0002,117,632
9Jun 8, 2026 09:595,577193,285,073174,850,0009,211,0002,117,632