Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 listAug 15, 2026 18:17Tomislav TunkovicTomislav TunkovicError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 18:22053,859,849125,989,0001,051,00065,536expected "1025169 ", got "1025171 "
2Aug 15, 2026 18:22054,094,781127,229,0001,121,00065,536expected "1019187 ", got "1019188 "
3Aug 15, 2026 18:22053,222,318125,221,0001,033,00065,536expected "1019811 ", got "1019812 "
4Aug 15, 2026 18:22053,397,834125,759,0001,029,00057,344expected "1018883 ", got "1018884 "
5Aug 15, 2026 18:22053,531,311125,825,0001,047,00057,344expected "1025380 ", got "1025381 "
6Aug 15, 2026 18:22053,695,671125,786,0001,043,00065,536expected "1022797 ", got "1022798 "
7Aug 15, 2026 18:221,77253,169,755125,399,0001,059,00061,440
8Aug 15, 2026 18:221,77453,226,348125,306,0001,073,00057,344
9Aug 15, 2026 18:221,79153,751,838124,233,0003,081,00057,344