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 04:16anboto1anboto1Error
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 04:170192,614,490173,270,00010,172,0002,117,632expected "1021492 ", got "1021491 "
2Jun 8, 2026 04:175,523191,525,901171,874,00010,400,0002,117,632
3Jun 8, 2026 04:175,532193,617,977172,437,00010,149,0002,117,632
4Jun 8, 2026 04:175,550192,497,095173,539,0009,629,0002,117,632
5Jun 8, 2026 04:175,561192,743,029173,359,00010,181,0002,117,632
6Jun 8, 2026 04:175,564193,432,808173,608,00010,030,0002,117,632
7Jun 8, 2026 04:175,579193,915,637173,770,00010,353,0002,117,632
8Jun 8, 2026 04:175,595193,912,207174,893,0009,766,0002,117,632
9Jun 8, 2026 04:175,620195,244,773175,169,00010,316,0002,117,632