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 listJun 16, 2024 00: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
1Jun 16, 2024 00:0800000Error: No answer to stdout. Died or killed?
2Jun 16, 2024 00:0900000Error: expected "1020107 ", got "1019574 "
3Jun 16, 2024 00:105,920258,339,284195,361,98402,359,296
4Jun 16, 2024 00:105,970255,103,347196,999,60002,211,840
5Jun 16, 2024 00:106,031269,514,483199,026,24202,224,128
6Jun 16, 2024 00:106,148228,878,426177,893,00024,985,0002,396,160
7Jun 16, 2024 00:106,179226,659,724178,908,00024,987,0002,359,296
8Jun 16, 2024 00:106,206229,247,318180,836,00023,978,0002,396,160
9Jun 16, 2024 00:106,208227,906,112180,881,00023,984,0002,387,968
10Jun 16, 2024 00:106,228233,091,371180,581,00024,942,0002,400,256
11Jun 16, 2024 00:106,228233,228,410179,590,00025,940,0002,363,392
12Jun 16, 2024 00:106,287235,297,276182,543,00024,937,0002,367,488
13Jun 16, 2024 00:106,324234,316,337182,743,00025,963,0002,363,392
14Jun 16, 2024 00:106,359234,642,734185,868,00023,983,0002,363,392