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 listJul 4, 2026 20:28zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:34Victor Mercklé11.33CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:34014,979,9283,609,0003,609,0002,138,112expected "16384 ", got "14847 "stderr
2Jul 4, 2026 20:34015,080,3323,130,0004,196,0002,138,112expected "16384 ", got "14847 "stderr
3Jul 4, 2026 20:34015,239,8253,501,0003,501,0002,138,112expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:293,229114,517,675104,287,0002,272,0002,121,728stderr
5Jul 4, 2026 20:293,233114,720,007104,440,0002,255,0002,121,728stderr
6Jul 4, 2026 20:293,275116,126,597105,867,0002,218,0002,121,728stderr
7Jul 4, 2026 20:293,278116,316,439105,987,0002,218,0002,121,728stderr
8Jul 4, 2026 20:293,298116,831,514106,620,0002,235,0002,121,728stderr
9Jul 4, 2026 20:293,307117,251,058106,941,0002,222,0002,121,728stderr
10Jul 4, 2026 20:293,334118,123,751107,753,0002,292,0002,121,728stderr
11Jul 4, 2026 20:293,350118,546,681108,213,0002,348,0002,121,728stderr
12Jul 4, 2026 20:293,356118,759,966108,476,0002,290,0002,121,728stderr