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 15:30Bernard 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 15:3000000Error: expected "1023981 ", got "1023980"
2Aug 29, 2022 15:3100000Error: expected "1024893 ", got "1024892"
3Aug 29, 2022 15:3100000Error: expected "1024222 ", got "1024221"
4Aug 29, 2022 15:308,295332,437,966273,749,63402,297,856
5Aug 29, 2022 15:308,421337,804,737277,886,59902,293,760
6Aug 29, 2022 15:308,813355,347,374290,837,98502,174,976
7Aug 29, 2022 15:308,924361,015,135294,477,19702,297,856
8Aug 29, 2022 15:308,960356,488,131295,683,24602,293,760
9Aug 29, 2022 15:3010,311400,557,065340,266,65502,256,896