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 listDec 20, 2025 05:04Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:39Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:440127,568,612112,310,0004,019,0002,117,632expected "2108210 ", got "1190295 "stderr
2Oct 15, 2026 20:440127,275,910111,909,0004,125,0002,117,632expected "2102846 ", got "1184351 "stderr
3Oct 15, 2026 20:4421918,205,8623,474,0003,758,0002,125,824stderr
4Dec 20, 2025 05:045,455203,162,351176,020,0004,000,0002,523,136
5Dec 20, 2025 05:045,464200,859,171175,299,0005,008,0002,514,944
6Dec 20, 2025 05:045,468209,442,222174,438,0006,015,0002,510,848
7Dec 20, 2025 05:045,474211,195,202174,651,0005,988,0002,281,472
8Dec 20, 2025 05:045,483203,917,086174,937,0005,997,0002,519,040
9Dec 20, 2025 05:045,490204,587,341177,151,0004,003,0002,392,064
10Dec 20, 2025 05:045,491203,917,421176,186,0005,005,0002,371,584
11Dec 20, 2025 05:045,502213,917,142175,593,0005,986,0002,514,944
12Dec 20, 2025 05:045,504211,016,848175,630,0005,987,0002,392,064
13Dec 20, 2025 05:045,511205,339,184177,859,0003,996,0002,510,848
14Dec 20, 2025 05:045,513210,776,936176,944,0004,998,0002,457,600
15Dec 20, 2025 05:045,515206,267,348177,998,0003,999,0002,523,136
16Dec 20, 2025 05:045,552213,253,153177,206,0006,007,0002,514,944
17Dec 20, 2025 05:045,552205,302,508179,226,0004,005,0002,367,488
18Dec 20, 2025 05:045,555214,518,470176,295,0007,011,0002,408,448
19Dec 20, 2025 05:045,610211,283,363179,124,0006,004,0002,433,024
20Dec 20, 2025 05:045,648214,765,957180,376,0006,012,0002,457,600
21Dec 20, 2025 05:045,742215,137,868186,492,0002,991,0002,416,640
22Dec 20, 2025 05:045,744217,572,621186,555,0002,992,0002,514,944
23Dec 20, 2025 05:045,762216,619,957186,139,0004,003,0002,519,040
24Dec 20, 2025 05:045,784216,118,743187,870,0002,997,0002,363,392
25Dec 20, 2025 05:046,010220,432,025193,333,0005,008,0002,514,944
26Dec 20, 2025 05:046,099228,632,197196,275,0005,007,0002,514,944
27Dec 20, 2025 05:046,133227,670,734198,368,0004,007,0002,363,392