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 17, 2024 18:27Joad 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 17, 2024 18:2700000Error: expected "1023282 ", got "1023275 "
2Jun 17, 2024 18:274,737226,656,542156,305,69902,207,744
3Jun 17, 2024 18:274,851242,822,570160,085,23102,342,912
4Jun 17, 2024 18:274,877226,069,352160,952,37802,220,032
5Jun 17, 2024 18:275,340202,546,934155,186,00021,025,0002,404,352
6Jun 17, 2024 18:275,387201,295,823152,797,00024,966,0002,355,200
7Jun 17, 2024 18:275,400204,454,245153,172,00025,028,0002,359,296
8Jun 17, 2024 18:275,417202,130,182153,798,00024,967,0002,363,392
9Jun 17, 2024 18:275,419201,293,758154,852,00023,977,0002,367,488
10Jun 17, 2024 18:275,448203,761,523152,819,00026,968,0002,363,392
11Jun 17, 2024 18:275,471207,136,109156,465,00024,071,0002,404,352
12Jun 17, 2024 18:275,512207,456,422154,920,00026,986,0002,363,392
13Jun 17, 2024 18:275,720219,988,461164,786,00023,968,0002,400,256