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 3, 2026 20:05TudyMTudyMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:0801,331,999,9831,283,601,00031,740,0002,428,928expected "1026071 ", got "1026070 "
2May 3, 2026 20:0801,373,392,9591,325,109,00032,548,0002,449,408expected "1025150 ", got "1025149 "
3May 3, 2026 20:0843,8211,314,651,5871,266,056,00031,976,0002,428,928
4May 3, 2026 20:0844,1371,324,130,9061,272,898,00032,046,0002,449,408
5May 3, 2026 20:0844,2331,327,005,1851,277,054,00032,574,0002,428,928
6May 3, 2026 20:0844,4771,334,320,6631,283,426,00032,506,0002,514,944
7May 3, 2026 20:0844,6221,338,675,6921,286,745,00033,188,0002,437,120
8May 3, 2026 20:0844,6661,339,994,5791,288,009,00032,835,0002,424,832
9May 3, 2026 20:0844,7951,343,850,0081,292,912,00033,203,0002,441,216