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 19:49Joad 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 19:4600000Error: No answer to stdout. Died or killed?stderr
2Sep 13, 2024 19:4900000Error: expected "1022091 ", got "1022373 "stderr
3Sep 13, 2024 19:474,957186,156,423147,623,00015,959,0002,469,888
4Sep 13, 2024 19:474,969187,248,171150,965,00012,997,0002,469,888
5Sep 13, 2024 19:474,973193,876,459149,087,00015,008,0002,469,888
6Sep 13, 2024 19:475,002187,943,931153,064,00012,005,0002,457,600
7Sep 13, 2024 19:495,017194,272,317152,607,00012,966,0002,330,624
8Sep 13, 2024 19:475,030191,315,037155,006,00011,000,0002,457,600
9Sep 13, 2024 19:475,055188,959,122149,828,00016,980,0002,465,792
10Sep 13, 2024 19:495,136195,266,770156,525,00012,960,0002,465,792
11Sep 13, 2024 19:475,198194,989,658156,578,00014,959,0002,465,792
12Sep 13, 2024 19:495,309196,181,952163,175,00012,012,0002,355,200
13Sep 13, 2024 19:475,379208,026,246163,550,00013,961,0002,465,792
14Sep 13, 2024 19:476,161227,526,389190,299,00013,020,0002,465,792