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 24, 2026 10:57anboto1anboto1Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2026 10:590184,121,115165,437,0009,348,0002,117,632expected "1021636 ", got "1021635 "
2Jun 24, 2026 10:595,260184,779,696164,331,0009,261,0002,117,632
3Jun 24, 2026 10:595,264183,448,199165,324,0008,388,0002,117,632
4Jun 24, 2026 10:595,280183,999,401164,960,0009,298,0002,117,632
5Jun 24, 2026 10:595,282183,538,920165,191,0009,146,0002,117,632
6Jun 24, 2026 10:595,303185,406,983165,690,0009,310,0002,117,632
7Jun 24, 2026 10:595,314184,890,011165,990,0009,396,0002,117,632
8Jun 24, 2026 10:595,320184,823,354166,332,0009,236,0002,117,632
9Jun 24, 2026 10:595,350186,857,623167,222,0009,352,0002,117,632