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 2, 2026 21:23zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 10:41Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 10:42011,272,0711,047,0002,132,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 10:42010,976,2651,531,0001,531,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 10:42010,946,6441,039,0002,148,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 21:233,138130,212,121102,541,0001,005,0002,535,424
5Jan 2, 2026 21:243,158126,616,983103,216,0001,002,0002,531,328
6Jan 2, 2026 21:243,176129,615,055101,805,0002,994,0002,535,424
7Jan 2, 2026 21:243,188136,387,347104,200,0001,001,0002,531,328
8Jan 2, 2026 21:243,206129,123,852103,788,0001,995,0002,420,736
9Jan 2, 2026 21:243,208128,117,662104,851,000998,0002,273,280
10Jan 2, 2026 21:243,212126,291,201104,007,0002,000,0002,420,736
11Jan 2, 2026 21:243,235131,684,818105,760,000997,0002,416,640
12Jan 2, 2026 21:233,274127,035,680106,044,0002,000,0002,420,736
13Jan 2, 2026 21:243,296133,107,891107,782,000997,0002,412,544
14Jan 2, 2026 21:243,356143,483,203109,749,000997,0002,420,736
15Jan 2, 2026 21:233,411139,340,405111,573,0001,005,0002,273,280