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 listOct 2, 2024 17: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
1Oct 2, 2024 17:4800000Error: No answer to stdout. Died or killed?stderr
2Oct 2, 2024 17:5000000Error: expected "1024537 ", got "1024853 "stderr
3Oct 2, 2024 17:504,786183,306,069146,936,00010,995,0002,342,912
4Oct 2, 2024 17:504,789187,032,912145,031,00013,002,0002,330,624
5Oct 2, 2024 17:504,874183,043,870148,848,00011,987,0002,469,888
6Oct 2, 2024 17:504,886195,438,940146,224,00015,023,0002,338,816
7Oct 2, 2024 17:504,902192,871,422147,778,00013,979,0002,387,968
8Oct 2, 2024 17:504,918189,717,475150,267,00012,021,0002,334,720
9Oct 2, 2024 17:504,934185,301,519146,830,00015,981,0002,465,792
10Oct 2, 2024 17:494,956191,057,625150,570,00012,963,0002,351,104
11Oct 2, 2024 17:504,963193,310,803150,808,00012,983,0002,334,720
12Oct 2, 2024 17:494,996186,821,168152,864,00011,989,0002,342,912
13Oct 2, 2024 17:505,184198,508,092160,072,00011,004,0002,461,696
14Oct 2, 2024 17:495,200197,386,401155,624,00015,961,0002,461,696