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 listAug 29, 2022 11:12Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2022 11:1200000Error: expected "1020765 ", got "1020764"
2Aug 29, 2022 11:1200000Error: expected "1022822 ", got "1022821"
3Aug 29, 2022 11:128,607361,023,823284,032,23402,289,664
4Aug 29, 2022 11:158,610353,658,239284,144,49102,285,568
5Aug 29, 2022 11:158,611351,621,912284,153,75402,281,472
6Aug 29, 2022 11:158,624358,748,397284,589,53302,297,856
7Aug 29, 2022 11:158,640366,034,637285,115,22502,293,760
8Aug 29, 2022 11:158,653353,419,827285,543,36802,297,856
9Aug 29, 2022 11:158,658347,953,282285,720,54902,301,952
10Aug 29, 2022 11:128,667356,780,571286,025,41102,289,664
11Aug 29, 2022 11:158,675342,086,603286,273,32702,281,472
12Aug 29, 2022 11:158,688356,437,248286,689,22802,289,664
13Aug 29, 2022 11:128,697369,771,770286,997,33502,289,664
14Aug 29, 2022 11:158,723348,120,540287,871,21202,285,568