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 8, 2026 04:18anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 04:190191,298,057172,111,0009,680,0002,117,632expected "1020259 ", got "1020258 "
2Jun 8, 2026 04:195,512191,162,515171,819,00010,099,0002,117,632
3Jun 8, 2026 04:195,530194,525,598172,777,0009,735,0002,117,632
4Jun 8, 2026 04:195,532192,230,512172,982,0009,601,0002,117,632
5Jun 8, 2026 04:195,535191,896,452172,589,00010,088,0002,117,632
6Jun 8, 2026 04:195,544192,700,118173,160,0009,799,0002,117,632
7Jun 8, 2026 04:195,555192,648,435173,063,00010,252,0002,117,632
8Jun 8, 2026 04:195,556192,603,239173,552,0009,817,0002,117,632
9Jun 8, 2026 04:195,620194,727,499175,175,00010,287,0002,117,632