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 listJan 7, 2026 21:49Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:46Tomislav Tunkovic13.66CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:540518,750,006506,371,0002,215,0002,117,632expected "2919940 ", got "2919846 "
2Sep 9, 2026 08:540527,519,776514,834,0002,206,0002,117,632expected "2919926 ", got "2919845 "
3Sep 9, 2026 08:540522,487,978510,044,0002,222,0002,117,632expected "2919934 ", got "2919835 "
4Jan 7, 2026 21:4914,136491,938,147463,485,0002,996,0002,289,664
5Jan 7, 2026 21:4914,201494,430,108465,621,0002,997,0002,347,008
6Jan 7, 2026 21:4914,301499,638,026469,933,0001,999,0002,289,664
7Jan 7, 2026 21:4914,518504,627,372477,079,0002,000,0002,326,528
8Jan 7, 2026 21:4914,634507,788,634479,936,0002,999,0002,289,664
9Jan 7, 2026 21:4914,742513,579,596482,490,0003,995,0002,342,912
10Jan 7, 2026 21:4914,969529,754,906491,979,0001,999,0002,347,008
11Jan 7, 2026 21:4915,457532,589,548508,079,0002,000,0002,289,664
12Jan 7, 2026 21:4917,304603,007,766568,017,0003,000,0002,289,664