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 8, 2021 21:17Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2021 21:1700000Error: expected "1034859 ", got "1034858 "
2Jun 8, 2021 21:1700000Error: expected "1035754 ", got "1035752 "
3Jun 8, 2021 21:1700000Error: expected "1038535 ", got "1038534 "
4Jun 8, 2021 21:1700000Error: expected "1035781 ", got "1035780 "
5Jun 8, 2021 21:1800000Error: expected "1042067 ", got "1042065 "
6Jun 8, 2021 21:1800000Error: expected "1037902 ", got "1037900 "
7Jun 8, 2021 21:1800000Error: expected "1034794 ", got "1034792 "
8Jun 8, 2021 21:187,474312,338,816246,632,11702,281,472
9Jun 8, 2021 21:187,506316,453,627247,689,71902,277,376
10Jun 8, 2021 21:187,584302,908,280250,256,59502,269,184
11Jun 8, 2021 23:1114,072530,963,703464,372,50002,256,896
12Jun 8, 2021 23:1114,221538,996,406469,279,63602,252,800
13Jun 8, 2021 23:1114,233538,230,423469,699,91702,248,704