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 31, 2026 12:50Victor 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 31, 2026 12:510161,213,045449,180,0002,084,0002,174,976expected "1020082 ", got "1020081 "stderr
2Aug 31, 2026 12:515,376161,290,053447,946,0003,111,0002,174,976stderr
3Aug 31, 2026 12:515,384161,543,244448,412,0003,070,0002,174,976stderr
4Aug 31, 2026 12:515,391161,733,294451,029,0002,114,0002,174,976stderr
5Aug 31, 2026 12:515,396161,895,328450,986,0002,090,0002,174,976stderr
6Aug 31, 2026 12:515,401162,058,931449,399,0003,105,0002,174,976stderr
7Aug 31, 2026 12:515,408162,259,457450,114,0003,091,0002,174,976stderr
8Aug 31, 2026 12:515,411162,331,006448,513,0002,115,0002,174,976stderr
9Aug 31, 2026 12:515,429162,897,799452,248,0003,065,0002,174,976stderr