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 13, 2024 10:09Joad 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
1Sep 13, 2024 10:0700000Error: expected "1020264 ", got "1020380 "stderr
2Sep 13, 2024 10:094,878181,315,177148,980,00011,998,0002,510,848
3Sep 13, 2024 10:094,905183,471,505147,888,00013,989,0002,330,624
4Sep 13, 2024 10:114,934189,895,073147,853,00014,985,0002,334,720
5Sep 13, 2024 10:114,955188,797,439149,568,00013,959,0002,465,792
6Sep 13, 2024 10:094,988187,220,885149,643,00014,964,0002,293,760
7Sep 13, 2024 10:114,995188,543,821151,860,00012,988,0002,461,696
8Sep 13, 2024 10:114,999186,381,990151,968,00012,997,0002,469,888
9Sep 13, 2024 10:115,034187,702,263150,124,00016,013,0002,465,792
10Sep 13, 2024 10:095,054194,195,109151,803,00014,980,0002,338,816
11Sep 13, 2024 10:115,056191,267,612151,867,00014,986,0002,469,888
12Sep 13, 2024 10:095,058190,775,375151,930,00014,993,0002,334,720
13Sep 13, 2024 10:095,097191,964,585154,198,00014,018,0002,510,848
14Sep 13, 2024 10:095,121189,963,875154,996,00013,999,0002,293,760
15Sep 13, 2024 10:115,214199,092,317159,049,00013,004,0002,281,472
16Sep 13, 2024 10:095,324200,356,706163,702,00011,978,0002,461,696
17Sep 13, 2024 10:115,324200,057,653162,723,00012,977,0002,338,816
18Sep 13, 2024 10:115,396204,648,178165,074,00013,005,0002,338,816
19Sep 13, 2024 10:095,420199,812,122163,863,00014,987,0002,293,760