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 listMay 13, 2026 20:12Josu San MartinJosu San MartinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2026 20:130120,677,097108,884,0001,036,0002,113,536expected "1024161 ", got "1024160 "
2May 13, 2026 20:133,319118,332,933108,513,0001,032,0002,113,536
3May 13, 2026 20:133,353119,862,338109,617,0001,044,0002,113,536
4May 13, 2026 20:133,354119,372,894109,644,0001,055,0002,113,536
5May 13, 2026 20:133,355122,264,925109,692,0001,052,0002,113,536
6May 13, 2026 20:133,356120,697,517109,716,0001,051,0002,113,536
7May 13, 2026 20:133,357121,152,259109,736,0001,052,0002,113,536
8May 13, 2026 20:133,364119,882,726109,991,0001,051,0002,113,536
9May 13, 2026 20:133,423124,742,070109,871,0003,113,0002,113,536