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 09:04anboto1anboto1Error
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 09:050190,374,038172,548,0008,312,0002,117,632expected "1022200 ", got "1022199 "
2Jun 8, 2026 09:055,497190,890,763172,164,0009,259,0002,117,632
3Jun 8, 2026 09:055,503190,778,187172,307,0009,293,0002,117,632
4Jun 8, 2026 09:055,508191,079,498172,511,0009,254,0002,117,632
5Jun 8, 2026 09:055,526191,552,586173,145,0009,227,0002,117,632
6Jun 8, 2026 09:055,534193,530,840173,450,0009,178,0002,117,632
7Jun 8, 2026 09:055,542192,126,208173,690,0009,205,0002,117,632
8Jun 8, 2026 09:055,578193,791,648174,764,0009,334,0002,117,632
9Jun 8, 2026 09:055,596193,883,127175,269,0009,414,0002,117,632