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 5, 2022 13:18Eugene ZhydzetskiEugene ZhydzetskiError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 5, 2022 13:1300000Error: expected "1027092 ", got "1027091 "
2Aug 5, 2022 13:1600000Error: expected "1018748 ", got "1018747 "stderr
3Aug 5, 2022 13:1700000Error: expected "1025706 ", got "1025705 "stderr
4Aug 5, 2022 13:18138,9564,653,849,1984,585,553,90002,281,472
5Aug 5, 2022 13:18139,2364,671,914,3154,594,800,22902,248,704
6Aug 5, 2022 13:18140,1394,693,427,1614,624,600,47502,240,512