Unique strings Sergey Svistunov

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 listJan 2, 2026 11:04zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 21:33Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 21:33010,902,3361,527,0001,527,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 21:33010,884,0271,045,0002,146,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 21:33011,077,2361,537,0001,536,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 11:023,375130,811,105111,380,00002,416,640
5Jan 2, 2026 11:043,387142,342,349110,787,000998,0002,273,280
6Jan 2, 2026 11:043,398135,491,781111,117,0001,001,0002,535,424
7Jan 2, 2026 11:043,409140,860,417111,498,0001,004,0002,273,280
8Jan 2, 2026 11:023,418138,235,978111,801,000998,0002,424,832
9Jan 2, 2026 11:083,423140,798,595110,968,0001,999,0002,486,272
10Jan 2, 2026 11:083,426132,757,493111,049,0002,000,0002,273,280
11Jan 2, 2026 11:043,448140,679,643111,787,0001,996,0002,416,640
12Jan 2, 2026 11:043,448139,837,709111,773,0001,995,0002,273,280
13Jan 2, 2026 11:023,449142,754,979111,812,0001,996,0002,412,544
14Jan 2, 2026 11:043,457138,212,750112,090,0002,001,0002,535,424
15Jan 2, 2026 11:043,481143,086,772112,871,0001,997,0002,420,736
16Jan 2, 2026 11:043,488137,216,310113,114,0002,002,0002,306,048
17Jan 2, 2026 11:043,573140,401,127115,916,0001,998,0002,535,424
18Jan 2, 2026 11:083,640148,746,845118,133,0002,002,0002,420,736