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 listDec 12, 2024 22:11Joad 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
1Dec 12, 2024 22:1200000Error: expected "1020872 ", got "1020891 "stderr
2Dec 12, 2024 20:1800000Error: expected "1025191 ", got "1025200 "stderr
3Dec 12, 2024 20:1700000Error: No answer to stdout. Died or killed?stderr
4Dec 12, 2024 20:204,528180,573,241145,442,0003,984,0002,523,136
5Dec 12, 2024 22:114,544174,299,147146,960,0002,999,0002,347,008
6Dec 12, 2024 22:114,565178,012,934147,666,0002,993,0002,527,232
7Dec 12, 2024 22:114,574173,728,331146,951,0003,998,0002,523,136
8Dec 12, 2024 22:114,579169,830,822149,090,0002,001,0002,523,136
9Dec 12, 2024 22:114,584169,136,143148,266,0003,005,0002,535,424
10Dec 12, 2024 20:204,594174,300,830146,623,0004,987,0002,535,424
11Dec 12, 2024 22:114,596176,128,867148,661,0002,993,0002,523,136
12Dec 12, 2024 22:114,596175,234,795146,683,0004,989,0002,457,600
13Dec 12, 2024 22:114,610170,665,199149,144,0003,002,0002,527,232
14Dec 12, 2024 22:114,614174,974,210149,268,0003,005,0002,523,136
15Dec 12, 2024 22:114,627173,650,026149,709,0002,994,0002,527,232
16Dec 12, 2024 22:114,629173,483,093150,764,0001,996,0002,465,792
17Dec 12, 2024 20:205,110190,463,954165,648,0002,993,0002,527,232
18Dec 12, 2024 22:115,328194,346,768173,842,0001,998,0002,527,232