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 09:11Victor 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 09:12050,942,266118,663,0001,023,0002,170,880expected "1021381 ", got "1021380 "stderr
2Aug 24, 2026 09:12050,425,668117,569,0001,021,0002,170,880expected "1021656 ", got "1021655 "stderr
3Aug 24, 2026 09:121,67750,334,724118,574,0002,014,0002,170,880stderr
4Aug 24, 2026 09:121,69050,710,645119,209,0001,038,0002,170,880stderr
5Aug 24, 2026 09:121,69450,835,071119,413,0002,012,0002,170,880stderr
6Aug 24, 2026 09:121,70251,065,839118,983,0001,026,0002,170,880stderr
7Aug 24, 2026 09:121,70851,244,582121,367,0001,016,0002,170,880stderr
8Aug 24, 2026 09:121,71651,482,293119,065,0001,035,0002,170,880stderr
9Aug 24, 2026 09:121,73952,172,129118,805,0002,033,0002,170,880stderr