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 listJul 3, 2026 15:10Victor 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
1Jul 3, 2026 15:100127,986,380119,007,0001,172,0002,117,632expected "1021228 ", got "1021227 "stderr
2Jul 3, 2026 15:103,632127,746,985118,772,0001,093,0002,117,632stderr
3Jul 3, 2026 15:103,639128,123,516118,983,0001,105,0002,117,632stderr
4Jul 3, 2026 15:103,642128,073,127119,049,0001,163,0002,117,632stderr
5Jul 3, 2026 15:103,642128,038,334119,088,0001,119,0002,117,632stderr
6Jul 3, 2026 15:103,648128,154,497119,244,0001,149,0002,117,632stderr
7Jul 3, 2026 15:103,652128,295,698119,359,0001,169,0002,117,632stderr
8Jul 3, 2026 15:103,652128,364,422119,370,0001,174,0002,117,632stderr
9Jul 3, 2026 15:103,660128,668,974119,624,0001,182,0002,117,632stderr