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 listApr 27, 2026 15:17limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:180206,824,743176,597,00014,965,0002,519,040expected "1022740 ", got "1022739"
2Apr 27, 2026 15:185,787209,496,955176,990,00013,999,0002,527,232
3Apr 27, 2026 15:185,806211,581,083176,656,00014,970,0002,514,944
4Apr 27, 2026 15:185,810210,421,184176,766,00014,980,0002,523,136
5Apr 27, 2026 15:185,817208,505,968176,988,00014,998,0002,523,136
6Apr 27, 2026 15:185,829212,257,422178,340,00014,026,0002,527,232
7Apr 27, 2026 15:185,832209,465,166176,525,00015,957,0002,531,328
8Apr 27, 2026 15:185,839211,847,658177,734,00014,977,0002,531,328
9Apr 27, 2026 15:185,842214,195,680177,826,00014,985,0002,523,136