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 11:24anboto1anboto1Error
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 11:250193,985,035175,291,0009,336,0002,117,632expected "1019469 ", got "1019468 "
2Jun 8, 2026 11:255,499190,708,706172,249,0009,229,0002,117,632
3Jun 8, 2026 11:255,520191,404,027172,972,0009,218,0002,117,632
4Jun 8, 2026 11:255,522191,429,364173,073,0009,184,0002,117,632
5Jun 8, 2026 11:255,545192,235,811173,748,0009,255,0002,117,632
6Jun 8, 2026 11:255,551192,451,265173,982,0009,224,0002,117,632
7Jun 8, 2026 11:255,556192,559,969174,079,0009,278,0002,117,632
8Jun 8, 2026 11:255,578193,862,759174,734,0009,354,0002,117,632
9Jun 8, 2026 11:255,614194,459,970175,989,0009,299,0002,117,632