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 listJun 27, 2026 03:17Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 03:180337,163,728292,212,00036,699,0002,113,536expected "1023084 ", got "1023083 "
2Jun 27, 2026 03:189,911334,878,438290,252,00036,828,0002,113,536
3Jun 27, 2026 03:189,932335,375,023291,059,00036,697,0002,113,536
4Jun 27, 2026 03:189,946336,169,777291,629,00036,601,0002,113,536
5Jun 27, 2026 03:189,947336,454,008291,743,00036,532,0002,113,536
6Jun 27, 2026 03:189,970337,260,237292,301,00036,741,0002,113,536
7Jun 27, 2026 03:1810,043339,521,963294,712,00036,725,0002,113,536
8Jun 27, 2026 03:1810,051339,690,981295,103,00036,609,0002,113,536
9Jun 27, 2026 03:1810,060340,151,548295,241,00036,743,0002,113,536