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 14:59anboto1anboto1Error
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 15:000195,196,458176,132,0009,355,0002,117,632expected "1021612 ", got "1021611 "
2Jun 8, 2026 15:005,529193,094,030173,207,0009,250,0002,117,632
3Jun 8, 2026 15:005,546192,532,224174,769,0008,276,0002,117,632
4Jun 8, 2026 15:005,552192,679,075173,995,0009,229,0002,117,632
5Jun 8, 2026 15:005,568192,961,653174,579,0009,167,0002,117,632
6Jun 8, 2026 15:005,586193,564,913175,086,0009,267,0002,117,632
7Jun 8, 2026 15:005,606194,201,348175,704,0009,301,0002,117,632
8Jun 8, 2026 15:005,627195,020,374176,446,0009,275,0002,117,632
9Jun 8, 2026 15:005,639196,632,746176,733,0009,377,0002,117,632