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

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 22:24Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 22:24013,509,7672,225,0003,351,0002,129,920expected "16384 ", got "14847 "stderr
2Jul 4, 2026 22:24013,506,3792,188,0003,305,0002,129,920expected "16384 ", got "14847 "stderr
3Jul 4, 2026 22:24015,135,8542,237,0003,361,0002,129,920expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:463,429121,494,078110,954,0002,215,0002,121,728stderr
5Jul 4, 2026 20:463,431121,228,112111,066,0002,182,0002,121,728stderr
6Jul 4, 2026 20:463,462122,370,317111,992,0002,274,0002,121,728stderr
7Jul 4, 2026 20:463,473122,665,878112,394,0002,226,0002,121,728stderr
8Jul 4, 2026 20:463,489123,349,773112,935,0002,226,0002,121,728stderr
9Jul 4, 2026 20:463,493123,645,582112,941,0002,351,0002,121,728stderr
10Jul 4, 2026 20:463,513124,311,236113,642,0002,297,0002,121,728stderr
11Jul 4, 2026 20:463,532125,035,168114,266,0002,295,0002,121,728stderr
12Jul 4, 2026 20:463,563125,572,087115,345,0002,257,0002,121,728stderr