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 listApr 26, 2026 07:58limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 21:01Andrew Epstein10.03CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 21:15079,020,63353,436,00013,556,0002,117,632expected "2106518 ", got "1593739"
2Oct 15, 2026 21:15077,301,71952,963,00013,782,0002,117,632expected "2105507 ", got "1592728"
3Oct 15, 2026 21:1543525,556,124014,368,0002,121,728
4Apr 26, 2026 07:596,820245,150,974210,077,00015,005,0002,531,328
5Apr 26, 2026 07:596,835239,954,039211,606,00013,974,0002,347,008
6Apr 26, 2026 07:596,841239,787,652210,789,00014,985,0002,347,008
7Apr 26, 2026 07:596,842242,036,249210,811,00014,986,0002,535,424
8Apr 26, 2026 07:596,847249,446,315211,962,00013,997,0002,519,040
9Apr 26, 2026 07:596,859244,191,183212,353,00014,023,0002,527,232
10Apr 26, 2026 07:596,881245,405,693213,088,00014,005,0002,326,528
11Apr 26, 2026 07:596,885244,806,685213,205,00014,013,0002,531,328
12Apr 26, 2026 07:596,898247,428,611210,682,00016,974,0002,527,232