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 17:34zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 14:59Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 14:59010,959,9081,542,0001,542,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 14:59010,944,1261,043,0002,155,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 14:59010,943,5951,041,0002,115,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 17:343,207129,529,029104,831,000998,0002,506,752
5Jan 2, 2026 17:363,244125,710,645106,064,0001,000,0002,273,280
6Jan 2, 2026 17:343,266131,912,665106,771,000997,0002,424,832
7Jan 2, 2026 17:343,269136,859,348104,868,0002,996,0002,420,736
8Jan 2, 2026 17:343,276136,495,509106,110,0002,002,0002,273,280
9Jan 2, 2026 17:363,280133,218,271105,228,0003,006,0002,269,184
10Jan 2, 2026 17:343,296141,395,188108,776,00002,408,448
11Jan 2, 2026 17:343,297133,431,239107,807,000998,0002,273,280
12Jan 2, 2026 17:343,351139,871,826109,565,0001,005,0002,428,928
13Jan 2, 2026 17:363,379132,391,779109,487,0002,008,0002,412,544
14Jan 2, 2026 17:343,389135,078,836108,832,0002,995,0002,531,328
15Jan 2, 2026 17:343,570144,312,573114,820,0002,995,0002,273,280