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:42anboto1anboto1Error
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:430190,896,195172,293,0009,339,0002,117,632expected "1019871 ", got "1019870 "
2Jun 8, 2026 10:430191,689,931172,639,0009,347,0002,117,632expected "1025738 ", got "1025737 "
3Jun 8, 2026 10:435,462189,506,785171,016,0009,244,0002,117,632
4Jun 8, 2026 10:435,488190,404,048171,868,0009,250,0002,117,632
5Jun 8, 2026 10:435,491190,413,317171,972,0009,238,0002,117,632
6Jun 8, 2026 10:435,510191,085,224172,516,0009,320,0002,117,632
7Jun 8, 2026 10:435,531192,245,660173,156,0009,388,0002,117,632
8Jun 8, 2026 10:435,545192,240,392173,603,0009,401,0002,117,632
9Jun 8, 2026 10:435,583193,527,536175,032,0009,237,0002,117,632