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:15limanjun99limanjun99Error
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:160209,863,193177,352,00014,027,0002,523,136expected "1024630 ", got "1024629"
2Apr 27, 2026 15:160207,586,026176,628,00015,966,0002,535,424expected "1021318 ", got "1021317"
3Apr 27, 2026 15:165,771211,259,877176,440,00014,035,0002,531,328
4Apr 27, 2026 15:165,780206,113,403175,763,00014,979,0002,539,520
5Apr 27, 2026 15:165,789208,608,958176,059,00015,005,0002,342,912
6Apr 27, 2026 15:165,792210,503,680177,135,00014,010,0002,531,328
7Apr 27, 2026 15:165,800209,861,039177,382,00014,030,0002,326,528
8Apr 27, 2026 15:165,802211,837,873177,451,00014,035,0002,326,528
9Apr 27, 2026 15:165,836211,828,445175,639,00016,965,0002,523,136