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 listFeb 2, 2025 18:50HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 37,562Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 2, 2025 18:5037,2001,115,987,6502,865,896,00088,934,0002,772,992
2Feb 2, 2025 18:5037,3041,119,130,9602,867,390,00094,913,0002,768,896
3Feb 2, 2025 18:5037,3861,121,577,2012,868,206,00093,908,0002,514,944
4Feb 2, 2025 18:5037,4111,122,329,9812,859,080,000101,860,0002,719,744
5Feb 2, 2025 18:5037,5621,126,851,5802,884,810,00094,895,0002,732,032
6Feb 2, 2025 18:5037,6221,128,661,3062,901,783,00087,932,0002,904,064
7Feb 2, 2025 18:5037,7141,131,429,5172,883,171,00096,972,0002,777,088
8Feb 2, 2025 18:5037,7591,132,779,4952,891,453,00094,916,0002,740,224
9Feb 2, 2025 18:5037,9121,137,369,7492,893,783,00093,928,0002,777,088