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 04:22anboto1anboto1Error
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 04:280191,668,648172,209,0009,716,0002,117,632expected "1022138 ", got "1022137 "
2Jun 8, 2026 04:280191,906,276172,497,0009,734,0002,117,632expected "1020960 ", got "1020958 "
3Jun 8, 2026 04:285,493190,900,935171,564,0009,737,0002,117,632
4Jun 8, 2026 04:285,501190,754,983171,359,00010,177,0002,117,632
5Jun 8, 2026 04:285,535191,946,373172,989,0009,689,0002,117,632
6Jun 8, 2026 04:285,550192,384,743172,960,00010,193,0002,117,632
7Jun 8, 2026 04:285,553193,006,607173,434,0009,823,0002,117,632
8Jun 8, 2026 04:285,579193,463,966173,798,00010,318,0002,117,632
9Jun 8, 2026 04:285,620194,677,159175,200,00010,279,0002,117,632