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 12:01zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:04Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:04010,991,4091,045,0002,148,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 20:04011,014,9951,038,0002,083,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 20:04010,970,2141,535,0001,536,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 11:433,393133,575,060109,962,0001,999,0002,408,448
5Jan 2, 2026 11:433,398134,738,168111,125,0001,001,0002,408,448
6Jan 2, 2026 11:433,400132,762,703109,211,0003,005,0002,273,280
7Jan 2, 2026 12:013,403136,309,014110,306,0002,005,0002,412,544
8Jan 2, 2026 11:503,417142,608,791109,773,0002,993,0002,416,640
9Jan 2, 2026 11:433,420136,970,337109,867,0002,996,0002,424,832
10Jan 2, 2026 11:433,420136,126,841111,864,000998,0002,404,352
11Jan 2, 2026 11:433,425137,767,245111,033,0002,000,0002,424,832
12Jan 2, 2026 11:433,432133,622,037111,254,0002,004,0002,273,280
13Jan 2, 2026 11:433,433133,006,028110,287,0003,007,0002,416,640
14Jan 2, 2026 11:503,434131,584,815111,314,0002,005,0002,420,736
15Jan 2, 2026 12:013,435133,152,357110,333,0003,009,0002,535,424
16Jan 2, 2026 11:503,439138,124,452111,495,0002,008,0002,416,640
17Jan 2, 2026 12:013,512138,214,131113,889,0001,998,0002,535,424
18Jan 2, 2026 11:433,544136,143,849114,969,0001,999,0002,535,424