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 12, 2026 22:34Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:47Andrew Epstein11.30CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:54027,527,0847,361,0009,584,0002,113,536expected "51803 ", got "46385 "
2Oct 15, 2026 20:540201,032,640179,251,00011,004,0002,113,536expected "2108814 ", got "948071 "
3Oct 15, 2026 20:545012,361,48901,663,0002,121,728
4Jan 12, 2026 22:3434,5031,167,929,2211,125,618,00012,995,0002,453,504
5Jan 12, 2026 22:3434,5631,165,438,5941,127,595,00012,995,0002,465,792
6Jan 12, 2026 22:3434,5691,168,597,8871,125,785,00014,997,0002,510,848
7Jan 12, 2026 22:3434,6311,164,742,4951,132,838,0009,998,0002,269,184
8Jan 12, 2026 22:3434,6891,167,852,6711,131,728,00012,996,0002,293,760
9Jan 12, 2026 22:3434,7231,175,316,0041,133,864,00011,998,0002,277,376
10Jan 12, 2026 22:3434,8061,174,954,8551,132,613,00015,994,0002,469,888
11Jan 12, 2026 22:3434,8921,179,868,9281,137,450,00013,993,0002,461,696
12Jan 12, 2026 22:3434,9661,182,094,3191,142,865,00010,998,0002,461,696