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 24, 2026 08:27Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2026 08:31053,403,843126,130,0002,034,0002,174,976expected "1020576 ", got "1020575 "stderr
2Aug 24, 2026 08:311,70251,080,056121,342,0001,030,0002,174,976stderr
3Aug 24, 2026 08:311,70751,211,106121,254,0001,009,0002,174,976stderr
4Aug 24, 2026 08:311,72851,850,058122,726,0001,014,0002,174,976stderr
5Aug 24, 2026 08:311,73051,914,883123,610,0001,026,0002,174,976stderr
6Aug 24, 2026 08:311,73151,955,805121,498,0002,016,0002,174,976stderr
7Aug 24, 2026 08:311,73452,036,994123,163,0001,015,0002,174,976stderr
8Aug 24, 2026 08:311,73452,038,240121,621,0002,021,0002,174,976stderr
9Aug 24, 2026 08:311,80454,141,782120,870,0001,015,0002,174,976stderr