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 listMar 23, 2025 10:41Aniruddha DebAniruddha DebError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:29Andrew Epstein10.85CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:290324,132,349279,725,00035,460,00024,576No answer to stdout. Died or killed?stderr
2Oct 15, 2026 20:2949525,308,26215,020,0001,330,0002,121,728stderr
3Oct 15, 2026 20:294,619161,516,506115,692,00036,746,0002,121,728stderr
4Mar 23, 2025 10:4135,3081,191,347,0421,117,195,00047,965,0002,527,232
5Mar 23, 2025 10:4135,3391,195,590,2511,121,230,00044,969,0002,367,488
6Mar 23, 2025 10:4135,3591,194,198,2981,128,843,00037,994,0002,363,392
7Mar 23, 2025 10:4135,5851,204,488,9821,128,318,00045,972,0002,269,184
8Mar 23, 2025 10:4135,6841,201,291,4491,130,576,00046,982,0002,506,752
9Mar 23, 2025 10:4135,7581,211,490,9681,138,036,00041,964,0002,531,328
10Mar 23, 2025 10:4135,8131,203,824,6851,137,848,00043,994,0002,351,104
11Mar 23, 2025 10:4135,9441,210,970,9411,148,175,00037,972,0002,326,528
12Mar 23, 2025 10:4135,9631,214,583,2131,142,793,00043,992,0002,437,120