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 22, 2026 11:14Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:520353,295,479331,399,00012,438,0002,113,536expected "2104331 ", got "1190175 "
2Oct 31, 2026 14:52010,807,94001,655,0002,117,632expected "299 ", got "251 "
3Oct 31, 2026 14:520350,251,369328,500,00012,387,0002,113,536expected "2107400 ", got "1192594 "
4Jun 22, 2026 11:165,038174,047,933129,564,00036,713,0002,113,536
5Jun 22, 2026 11:165,039173,767,023129,586,00036,701,0002,113,536
6Jun 22, 2026 11:165,043173,891,046129,782,00036,642,0002,113,536
7Jun 22, 2026 11:165,047174,099,504129,955,00036,617,0002,113,536
8Jun 22, 2026 11:165,053174,821,561129,955,00036,826,0002,113,536
9Jun 22, 2026 11:165,060174,580,335130,253,00036,744,0002,113,536
10Jun 22, 2026 11:165,063174,574,151129,443,00037,641,0002,113,536
11Jun 22, 2026 11:165,066174,940,283130,404,00036,803,0002,113,536
12Jun 22, 2026 11:165,068175,192,673130,603,00036,659,0002,113,536