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 13, 2026 07:47Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 00:50Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 02:310255,990,457208,126,00039,267,0002,113,536expected "2919929 ", got "1444067 "
2Sep 5, 2026 02:310261,130,032208,686,00039,512,0002,113,536expected "2919944 ", got "1444073 "
3Sep 5, 2026 02:310257,655,294209,572,00039,552,0002,113,536expected "2919927 ", got "1444063 "
4Jun 13, 2026 07:546,494222,062,366175,942,00038,362,0002,113,536
5Jun 13, 2026 07:546,519222,793,031177,807,00037,321,0002,113,536
6Jun 13, 2026 07:546,519222,710,221177,534,00037,625,0002,113,536
7Jun 13, 2026 07:546,522223,016,666177,503,00037,738,0002,113,536
8Jun 13, 2026 07:546,541223,534,924177,316,00038,569,0002,113,536
9Jun 13, 2026 07:546,542223,601,314177,527,00038,381,0002,113,536
10Jun 13, 2026 07:546,558224,106,222178,945,00037,495,0002,113,536
11Jun 13, 2026 07:546,565224,478,893178,479,00038,173,0002,113,536
12Jun 13, 2026 07:546,576224,760,545179,517,00037,499,0002,113,536