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 listApr 27, 2026 21:55Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 21:560608,711,209487,067,000103,014,0002,330,624expected "1022763 ", got "1022762 "
2Apr 27, 2026 21:5615,507530,812,362400,811,000110,947,0002,383,872
3Apr 27, 2026 21:5615,705534,891,760413,418,000104,852,0002,494,464
4Apr 27, 2026 21:5615,813538,662,520409,867,000111,963,0002,367,488
5Apr 27, 2026 21:5616,068545,574,246422,399,000107,846,0002,326,528
6Apr 27, 2026 21:5616,749567,261,681445,588,000107,141,0002,564,096
7Apr 27, 2026 21:5616,786572,909,698442,952,000110,988,0002,383,872
8Apr 27, 2026 21:5617,254582,359,265462,505,000106,885,0002,551,808
9Apr 27, 2026 21:5618,790635,869,503514,244,000105,844,0002,367,488