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:52zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:56Victor Mercklé10.98CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:56013,231,8352,683,0002,683,0002,129,920expected "16384 ", got "14847 "stderr
2Jul 4, 2026 20:56013,283,0112,671,0002,671,0002,129,920expected "16384 ", got "14847 "stderr
3Jul 4, 2026 20:56013,384,2742,234,0003,367,0002,129,920expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:533,235114,783,124104,637,0002,138,0002,121,728stderr
5Jul 4, 2026 20:533,241115,038,371104,764,0002,209,0002,121,728stderr
6Jul 4, 2026 20:533,262115,613,301105,515,0002,156,0002,121,728stderr
7Jul 4, 2026 20:533,294116,671,867106,388,0002,343,0002,121,728stderr
8Jul 4, 2026 20:533,312117,728,268106,878,0002,438,0002,121,728stderr
9Jul 4, 2026 20:533,312117,394,494107,059,0002,239,0002,121,728stderr
10Jul 4, 2026 20:533,318117,556,721107,290,0002,232,0002,121,728stderr
11Jul 4, 2026 20:533,322117,691,892107,393,0002,263,0002,121,728stderr
12Jul 4, 2026 20:533,328117,821,347107,614,0002,228,0002,121,728stderr