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 11, 2026 20:26Pavel 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 11, 2026 20:270604,564,088486,598,000110,606,0002,117,632expected "1019177 ", got "1019178 "
2May 11, 2026 20:2716,030536,412,219416,860,000112,147,0002,117,632
3May 11, 2026 20:2716,398550,417,053432,504,000108,638,0002,117,632
4May 11, 2026 20:2716,407549,471,289433,526,000107,913,0002,117,632
5May 11, 2026 20:2717,118572,324,120455,702,000109,212,0002,117,632
6May 11, 2026 20:2717,132573,205,722454,668,000110,697,0002,117,632
7May 11, 2026 20:2717,341581,846,055457,229,000115,044,0002,117,632
8May 11, 2026 20:2717,374583,596,463460,177,000113,173,0002,117,632
9May 11, 2026 20:2717,464584,786,375465,177,000111,154,0002,117,632