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 listJan 6, 2026 02:25zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 09:58Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 10:00011,332,8301,042,0002,155,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 10:00011,444,8791,039,0002,350,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 10:00013,510,5001,044,0002,162,0002,121,728expected "16384 ", got "349 "stderr
4Jan 4, 2026 23:403,050127,489,271100,647,00002,535,424
5Jan 4, 2026 23:373,079128,731,465101,603,00002,535,424
6Jan 4, 2026 23:403,088124,893,29599,903,0001,998,0002,416,640
7Jan 4, 2026 23:403,092126,391,274100,028,0002,000,0002,420,736
8Jan 4, 2026 23:373,100128,985,765100,293,0002,005,0002,531,328
9Jan 7, 2026 02:133,120128,130,369101,972,000999,0002,273,280
10Jan 4, 2026 23:403,152126,664,400103,009,0001,000,0002,420,736
11Jan 4, 2026 23:403,156125,448,419101,146,0003,004,0002,404,352
12Jan 4, 2026 23:373,157126,516,613102,175,0002,003,0002,535,424
13Jan 4, 2026 23:403,159129,054,992103,230,0001,002,0002,408,448
14Jan 4, 2026 23:403,174128,954,685102,744,0001,995,0002,535,424
15Jan 7, 2026 18:513,187128,021,440103,181,0002,003,0002,416,640
16Jan 7, 2026 02:133,193130,216,051103,349,0002,006,0002,416,640
17Jan 4, 2026 23:403,201128,714,682104,630,0001,006,0002,416,640
18Jan 7, 2026 03:503,210131,264,591102,920,0002,997,0002,416,640
19Jan 4, 2026 23:403,211129,782,168103,949,0001,999,0002,531,328
20Jan 7, 2026 03:503,221127,365,498105,296,0001,002,0002,535,424
21Jan 7, 2026 18:513,224125,808,927104,389,0002,007,0002,420,736
22Jan 7, 2026 02:133,278133,942,830105,158,0003,004,0002,412,544
23Jan 7, 2026 18:513,288137,311,724105,481,0003,013,0002,416,640
24Jan 7, 2026 03:503,327138,571,777107,788,0001,996,0002,416,640
25Jan 6, 2026 02:253,474143,498,572111,636,0002,990,0002,535,424
26Jan 6, 2026 02:253,852153,966,736123,100,0004,003,0002,412,544
27Jan 6, 2026 02:254,184158,768,169137,058,0001,000,0002,416,640