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 12, 2026 18:16Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2026 18:170729,567,014708,318,00011,505,0002,129,920expected "1024184 ", got "1024183 "
2Jun 12, 2026 18:1721,753727,558,103706,042,00011,819,0002,129,920
3Jun 12, 2026 18:1721,815729,559,495708,014,00011,903,0002,129,920
4Jun 12, 2026 18:1721,845730,423,963708,880,00012,033,0002,129,920
5Jun 12, 2026 18:1721,862732,058,074709,662,00011,807,0002,129,920
6Jun 12, 2026 18:1721,865731,054,576709,572,00012,000,0002,129,920
7Jun 12, 2026 18:1721,877731,246,652710,049,00011,915,0002,129,920
8Jun 12, 2026 18:1722,244743,335,802722,255,00011,821,0002,125,824
9Jun 12, 2026 18:1722,273744,700,157723,816,00011,223,0002,129,920