Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 listJul 6, 2024 21:04Joad 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
1Jul 6, 2024 21:0400000Error: expected "1026141 ", got "1026140 "
2Jul 6, 2024 21:0400000Error: expected "1020973 ", got "1020971 "
3Jul 6, 2024 21:0400000Error: expected "1025042 ", got "1025040 "
4Jul 6, 2024 21:0400000Error: expected "1022388 ", got "1022387 "
5Jul 6, 2024 21:0400000Error: expected "1020775 ", got "1020772 "
6Jul 6, 2024 21:0500000Error: expected "1022073 ", got "1022072 "
7Jul 6, 2024 21:0500000Error: expected "1025469 ", got "1025467 "
8Jul 6, 2024 21:0500000Error: expected "1022536 ", got "1022535 "
9Jul 6, 2024 21:0500000Error: expected "1020590 ", got "1020588 "
10Jul 6, 2024 21:046,581197,422,149135,478,52102,359,296
11Jul 6, 2024 21:046,684200,514,597134,972,51902,367,488
12Jul 6, 2024 21:046,905207,154,022137,918,70002,363,392