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 listJul 4, 2026 20:14zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:26Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:26011,164,2681,086,0002,282,0002,121,728expected "16384 ", got "14847 "stderr
2Jul 4, 2026 20:26011,045,6631,087,0002,273,0002,121,728expected "16384 ", got "14847 "stderr
3Jul 4, 2026 20:26011,423,1581,087,0002,258,0002,121,728expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:183,226114,456,921104,213,0002,261,0002,121,728stderr
5Jul 4, 2026 20:183,226114,555,202104,237,0002,233,0002,121,728stderr
6Jul 4, 2026 20:183,229114,559,423104,390,0002,199,0002,121,728stderr
7Jul 4, 2026 20:183,261116,019,863105,233,0002,402,0002,121,728stderr
8Jul 4, 2026 20:183,277116,081,891106,079,0002,091,0002,121,728stderr
9Jul 4, 2026 20:183,284116,401,778106,081,0002,292,0002,121,728stderr
10Jul 4, 2026 20:183,290117,052,916106,341,0002,258,0002,121,728stderr
11Jul 4, 2026 20:183,324117,798,390107,335,0002,370,0002,121,728stderr
12Jul 4, 2026 20:183,380119,589,198109,260,0002,284,0002,121,728stderr