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 14, 2026 11:51Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:560285,173,336269,818,0006,399,0002,117,632expected "2101416 ", got "1183743 "
2Oct 15, 2026 20:56018,495,2884,880,0004,880,0002,117,632expected "7237 ", got "5975 "
3Oct 15, 2026 20:560277,820,478262,350,0006,461,0002,117,632expected "2105009 ", got "1187855 "
4Jan 14, 2026 11:5114,095485,791,335458,144,0007,002,0002,412,544
5Jan 14, 2026 11:5114,112489,498,561457,702,0007,994,0002,404,352
6Jan 14, 2026 11:5114,150487,596,658459,947,0006,999,0002,408,448
7Jan 14, 2026 11:5114,154494,203,293459,096,0008,001,0002,469,888
8Jan 14, 2026 11:5114,167495,352,516458,515,0008,990,0002,322,432
9Jan 14, 2026 11:5114,205491,992,600462,754,0005,996,0002,461,696
10Jan 14, 2026 11:5114,242491,160,114457,990,00011,999,0002,412,544
11Jan 14, 2026 11:5114,294501,988,581460,721,00010,993,0002,342,912
12Jan 14, 2026 11:5114,879518,986,664481,026,0009,979,0002,408,448