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 listMay 1, 2026 11:22Pavel 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
1May 1, 2026 11:230655,740,883533,022,000105,805,0002,514,944expected "1022546 ", got "1022545 "
2May 1, 2026 11:2318,628630,523,896507,786,000106,955,0002,469,888
3May 1, 2026 11:2318,883641,655,939514,312,000108,854,0002,314,240
4May 1, 2026 11:2318,915646,550,601509,365,000114,856,0002,453,504
5May 1, 2026 11:2319,032649,864,397513,246,000114,831,0002,449,408
6May 1, 2026 11:2319,054649,077,898518,841,000109,966,0002,469,888
7May 1, 2026 11:2319,701668,774,842543,122,000107,024,0002,338,816
8May 1, 2026 11:2321,039711,750,683587,423,000106,895,0002,379,776
9May 1, 2026 11:2321,307724,235,763595,291,000107,871,0002,301,952