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 listMay 12, 2026 20:05Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:14Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:480305,446,503257,617,00039,551,0002,113,536expected "2919948 ", got "1439986 "
2Sep 5, 2026 00:480306,219,237258,363,00039,612,0002,113,536expected "2919938 ", got "1439979 "
3Sep 5, 2026 00:480305,242,911257,448,00039,468,0002,113,536expected "2919930 ", got "1439971 "
4May 12, 2026 20:088,110274,897,723229,870,00037,786,0002,113,536
5May 12, 2026 20:088,117275,131,561230,373,00037,503,0002,113,536
6May 12, 2026 20:088,124275,541,179229,443,00038,655,0002,113,536
7May 12, 2026 20:088,146277,770,267230,144,00038,684,0002,113,536
8May 12, 2026 20:088,146276,064,906230,284,00038,558,0002,113,536
9May 12, 2026 20:088,154276,297,427230,587,00038,513,0002,113,536
10May 12, 2026 20:088,170278,221,384230,973,00038,661,0002,113,536
11May 12, 2026 20:088,189278,637,462232,759,00037,489,0002,113,536
12May 12, 2026 20:088,218278,486,099233,306,00037,894,0002,113,536