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 listAug 23, 2026 14:10Victor MerckléVictor MerckléError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2026 14:110122,296,825112,713,0001,108,0002,117,632expected "1020070 ", got "1020069 "stderr
2Aug 23, 2026 14:113,407120,921,301111,345,0001,095,0002,117,632stderr
3Aug 23, 2026 14:113,427121,476,324112,109,0001,011,0002,117,632stderr
4Aug 23, 2026 14:113,429121,488,123112,152,0001,012,0002,117,632stderr
5Aug 23, 2026 14:113,436121,826,683112,379,0001,014,0002,117,632stderr
6Aug 23, 2026 14:113,445122,106,180112,603,0001,109,0002,117,632stderr
7Aug 23, 2026 14:113,462122,376,349113,101,0001,145,0002,117,632stderr
8Aug 23, 2026 14:113,472123,007,544113,591,0001,010,0002,117,632stderr
9Aug 23, 2026 14:113,478122,954,083113,768,0001,006,0002,117,632stderr