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 13, 2024 02:10Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2024 02:1000000Error: expected "1021426 ", got "1021424 "
2Jul 13, 2024 02:1000000Error: expected "1019664 ", got "1019662 "
3Jul 13, 2024 02:1000000Error: expected "1025947 ", got "1025946 "
4Jul 13, 2024 02:1000000Error: expected "1022030 ", got "1022027 "
5Jul 13, 2024 02:1000000Error: expected "1022371 ", got "1022369 "
6Jul 13, 2024 02:1000000Error: expected "1020587 ", got "1020585 "
7Jul 13, 2024 02:1000000Error: expected "1018472 ", got "1018471 "
8Jul 13, 2024 02:1000000Error: expected "1024676 ", got "1024675 "
9Jul 13, 2024 02:1000000Error: expected "1021778 ", got "1021776 "
10Jul 13, 2024 02:1000000Error: expected "1019278 ", got "1019273 "
11Jul 13, 2024 02:1000000Error: expected "1022719 ", got "1022715 "
12Jul 13, 2024 02:103,321173,068,226109,590,79302,228,224
13Jul 13, 2024 02:103,326177,389,347109,767,13902,232,320
14Jul 13, 2024 02:103,330176,522,269109,876,79902,236,416
15Jul 13, 2024 02:103,350172,561,854110,545,93302,228,224
16Jul 13, 2024 02:103,392186,789,410111,947,79002,228,224
17Jul 13, 2024 02:103,393171,752,349111,961,53402,236,416