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 10:03anboto1anboto1Error
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 10:040196,854,339172,299,00015,238,0002,117,632expected "1025648 ", got "1025647 "
2Jun 8, 2026 10:040197,928,174173,287,00015,351,0002,117,632expected "1019482 ", got "1019481 "
3Jun 8, 2026 10:040198,839,688174,651,00014,917,0002,117,632expected "1023915 ", got "1023914 "
4Jun 8, 2026 10:045,666196,796,794172,163,00014,827,0002,117,632
5Jun 8, 2026 10:045,671196,404,962172,018,00015,153,0002,117,632
6Jun 8, 2026 10:045,688197,483,697172,988,00014,748,0002,117,632
7Jun 8, 2026 10:045,702197,545,042172,928,00015,243,0002,117,632
8Jun 8, 2026 10:045,704197,483,758172,999,00015,246,0002,117,632
9Jun 8, 2026 10:045,759199,436,123175,110,00014,962,0002,117,632