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 listMay 13, 2026 19:14Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2026 19:150426,758,264413,688,0003,132,0002,117,632expected "1022989 ", got "1022988 "
2May 13, 2026 19:1511,169377,755,404365,473,0003,130,0002,117,632
3May 13, 2026 19:1511,324381,047,349370,673,0003,026,0002,117,632
4May 13, 2026 19:1511,450387,066,153374,591,0003,259,0002,117,632
5May 13, 2026 19:1511,500388,056,395376,463,0003,049,0002,117,632
6May 13, 2026 19:1511,832397,932,303387,356,0003,117,0002,117,632
7May 13, 2026 19:1511,893401,905,451389,310,0003,160,0002,117,632
8May 13, 2026 19:1512,117407,339,457396,834,0003,034,0002,117,632
9May 13, 2026 19:1513,307446,478,311436,000,0003,159,0002,117,632