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 listSep 8, 2024 14:23matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2024 14:1000000Error: expected "1021965 ", got "1021964 "stderr
2Sep 8, 2024 14:1200000Error: expected "1021414 ", got "1021413 "stderr
3Sep 8, 2024 14:1300000Error: expected "1022305 ", got "1022304 "stderr
4Sep 8, 2024 14:1600000Error: expected "1019693 ", got "1019692 "stderr
5Sep 8, 2024 14:1900000Error: expected "1019403 ", got "1019402 "stderr
6Sep 8, 2024 14:234,804180,133,891157,532,0001,003,0002,412,544
7Sep 8, 2024 14:235,910219,417,936193,018,0002,000,0002,392,064
8Sep 8, 2024 14:235,910222,233,124191,043,0003,980,0002,383,872
9Sep 8, 2024 14:235,940220,071,620194,033,0002,000,0002,531,328
10Sep 8, 2024 14:235,941223,351,884194,057,0002,000,0002,400,256
11Sep 8, 2024 14:235,976218,663,408195,194,0002,001,0002,502,656
12Sep 8, 2024 14:235,983220,802,329194,451,0002,991,0002,387,968
13Sep 8, 2024 14:235,986217,164,939194,544,0002,992,0002,396,160
14Sep 8, 2024 14:235,988221,235,397192,619,0004,990,0002,383,872