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 05:01anboto1anboto1Error
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 05:020193,017,078174,045,0009,818,0002,117,632expected "1022316 ", got "1022315 "
2Jun 8, 2026 05:020194,022,376174,400,00010,372,0002,117,632expected "1019880 ", got "1019879 "
3Jun 8, 2026 05:025,528191,816,456172,281,00010,152,0002,117,632
4Jun 8, 2026 05:025,535192,383,413172,958,0009,707,0002,117,632
5Jun 8, 2026 05:025,536191,980,451172,555,00010,135,0002,117,632
6Jun 8, 2026 05:025,537191,995,754172,504,00010,221,0002,117,632
7Jun 8, 2026 05:025,550192,901,954173,425,0009,744,0002,117,632
8Jun 8, 2026 05:025,557192,601,950173,219,00010,189,0002,117,632
9Jun 8, 2026 05:025,599193,989,594174,982,0009,814,0002,117,632