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 13, 2026 18:26Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2026 18:2802,583,655,5672,567,506,0008,751,0002,121,728expected "1025041 ", got "1025043 "stderr
2May 13, 2026 18:2871,8292,381,034,1472,361,397,0008,968,0002,121,728stderr
3May 13, 2026 18:2871,9162,382,410,1572,364,295,0008,955,0002,121,728stderr
4May 13, 2026 18:2875,6842,505,470,9182,488,888,0008,693,0002,121,728stderr
5May 13, 2026 18:2875,8842,511,580,6742,495,265,0008,911,0002,121,728stderr
6May 13, 2026 18:2877,7872,575,281,1682,558,396,0008,593,0002,121,728stderr
7May 13, 2026 18:2878,4412,595,998,1282,579,667,0008,904,0002,121,728stderr
8May 13, 2026 18:2881,6442,701,853,1712,684,444,0009,824,0002,121,728stderr
9May 13, 2026 18:2886,1522,851,569,1622,834,051,0008,970,0002,121,728stderr