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 27, 2026 01:54Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 01:5601,723,737,5681,662,532,00053,456,0002,117,632expected "1021415 ", got "1021414 "stderr
2Jun 27, 2026 01:5651,8481,718,716,2841,657,348,00053,649,0002,117,632stderr
3Jun 27, 2026 01:5652,2491,731,926,5581,670,604,00053,616,0002,117,632stderr
4Jun 27, 2026 01:5652,3491,736,677,9131,674,148,00053,384,0002,117,632stderr
5Jun 27, 2026 01:5652,4411,738,237,3741,677,195,00053,382,0002,117,632stderr
6Jun 27, 2026 01:5652,5491,741,887,0291,679,696,00054,428,0002,117,632stderr
7Jun 27, 2026 01:5652,6151,743,927,6761,681,390,00054,934,0002,117,632stderr
8Jun 27, 2026 01:5652,6151,744,254,6391,681,741,00054,575,0002,117,632stderr
9Jun 27, 2026 01:5652,6221,744,116,4631,682,308,00054,230,0002,117,632stderr