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 listMay 18, 2026 08:41M-RochatM-RochatError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 08:410343,803,619332,540,0001,002,0002,113,536expected "1024341 ", got "S300258563,L30000000,Fa63f8103d839ffe0,H2663.171188.2063275.2316440.2314476.2309977.2320488.2315461.2313132.2313072.2311575.2304048.2302306.2324679.2317220.0,U66.4341.69162.79296 "
2May 18, 2026 08:410341,386,122331,209,0001,003,0002,113,536expected "1024905 ", got "S300416617,L30000000,Feebe0d0708f6b3cb,H2603.168632.2059929.2312890.2309913.2300221.2302839.2324732.2317124.2330543.2306884.2315057.2335220.2298226.2315187.0,U66.4345.69165.79188 "
3May 18, 2026 08:410343,288,649330,174,0001,002,0002,113,536expected "1025608 ", got "S300435222,L30000000,F3bf3609b2ebe19b0,H2566.170266.2050614.2316347.2308562.2319225.2312023.2307727.2310877.2314750.2322208.2311700.2319399.2317551.2316185.0,U66.4334.69147.79403 "