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 22:57zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 09:41Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 09:42011,042,0691,042,0002,191,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 09:42011,267,0731,045,0002,145,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 09:42019,765,7771,048,0002,137,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 21:343,095124,699,386100,144,0002,002,0002,273,280
5Jan 2, 2026 21:343,125124,231,868101,137,0002,002,0002,535,424
6Jan 2, 2026 21:313,137126,207,546102,509,0001,004,0002,424,832
7Jan 2, 2026 21:343,145135,974,696103,798,00002,408,448
8Jan 2, 2026 21:343,152125,203,505102,032,0002,000,0002,424,832
9Jan 2, 2026 21:343,156129,942,463101,154,0003,004,0002,404,352
10Jan 2, 2026 21:343,158128,573,582102,206,0002,004,0002,420,736
11Jan 2, 2026 21:343,191125,295,849104,314,0001,003,0002,412,544
12Jan 2, 2026 21:313,199130,456,576104,550,0001,005,0002,412,544
13Jan 2, 2026 21:313,210131,627,674103,946,0001,998,0002,420,736
14Jan 2, 2026 22:573,245130,438,390104,072,0003,002,0002,502,656
15Jan 2, 2026 22:573,258132,026,826106,522,0001,004,0002,420,736
16Jan 2, 2026 21:343,270129,069,960105,899,0001,998,0002,424,832
17Jan 2, 2026 22:573,364135,452,937109,011,0002,000,0002,420,736
18Jan 2, 2026 21:343,650143,443,168119,462,0001,003,0002,326,528