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 29, 2026 20:12Alexander KrivolapovAlexander KrivolapovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 20:130512,273,521411,635,00078,930,0002,330,624expected "1024127 ", got "1024128 "
2Apr 29, 2026 20:1314,828512,047,678412,436,00076,894,0002,318,336
3Apr 29, 2026 20:1314,859511,383,116410,474,00079,897,0002,330,624
4Apr 29, 2026 20:1314,884506,282,108403,164,00088,035,0002,322,432
5Apr 29, 2026 20:1314,891508,844,855410,509,00080,903,0002,527,232
6Apr 29, 2026 20:1314,892512,758,306414,535,00076,913,0002,519,040
7Apr 29, 2026 20:1314,925512,464,971413,612,00078,926,0002,379,776
8Apr 29, 2026 20:1314,944509,588,587403,150,00090,033,0002,392,064
9Apr 29, 2026 20:1314,966509,496,343408,911,00084,981,0002,404,352