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:47HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 41,082Success
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:4740,4911,214,729,1423,163,282,00096,947,0002,641,920
2Feb 2, 2025 18:4740,7261,221,787,6333,200,271,00083,928,0002,826,240
3Feb 2, 2025 18:4740,8161,224,470,8703,185,779,000100,929,0002,572,288
4Feb 2, 2025 18:4740,9221,227,659,2743,206,310,00094,949,0002,846,720
5Feb 2, 2025 18:4741,0821,232,460,2933,231,201,00094,888,0002,514,944
6Feb 2, 2025 18:4741,1511,234,528,3473,221,868,00093,937,0002,793,472
7Feb 2, 2025 18:4741,2321,236,947,1713,213,730,000100,928,0002,777,088
8Feb 2, 2025 18:4741,2711,238,123,0303,210,425,00094,953,0002,519,040
9Feb 2, 2025 18:4741,9581,258,751,8193,195,273,00083,954,0002,318,336