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

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:04Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:340308,783,961258,259,00040,212,0002,134,016expected "2919934 ", got "1439980 "
2Sep 5, 2026 00:340312,390,339260,141,00040,085,0002,129,920expected "2919932 ", got "1439985 "
3Sep 5, 2026 00:340309,163,302258,627,00040,632,0002,134,016expected "2919941 ", got "1439982 "
4May 12, 2026 20:198,152277,798,470230,831,00038,193,0002,203,648
5May 12, 2026 20:198,159278,075,507230,690,00038,581,0002,129,920
6May 12, 2026 20:198,165278,869,791230,415,00039,038,0002,129,920
7May 12, 2026 20:198,167278,236,753231,451,00038,084,0002,203,648
8May 12, 2026 20:198,172278,363,898231,431,00038,271,0002,129,920
9May 12, 2026 20:198,182281,394,153230,663,00039,367,0002,129,920
10May 12, 2026 20:198,190279,410,377232,606,00037,669,0002,129,920
11May 12, 2026 20:198,220280,076,564231,583,00039,692,0002,129,920
12May 12, 2026 20:198,248281,089,412233,969,00038,227,0002,129,920