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 24, 2025 00:04zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 13:16Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 13:16011,012,1191,628,0001,628,0002,121,728expected "16384 ", got "32 "stderr
2Jul 5, 2026 13:16010,928,8651,572,0001,572,0002,121,728expected "16384 ", got "32 "stderr
3Jul 5, 2026 13:16011,076,9901,641,0001,641,0002,121,728expected "16384 ", got "32 "stderr
4Dec 24, 2025 00:054,020165,350,704121,701,00010,973,0002,416,640
5Dec 24, 2025 00:054,021156,340,257122,720,0009,977,0002,396,160
6Dec 24, 2025 00:054,024160,692,575121,813,00010,983,0002,428,928
7Dec 24, 2025 00:054,025152,366,560126,847,0005,992,0002,367,488
8Dec 24, 2025 00:054,027154,906,801124,909,0007,994,0002,445,312
9Dec 24, 2025 00:054,027159,685,587125,911,0006,995,0002,375,680
10Dec 24, 2025 00:044,028153,910,257124,920,0007,994,0002,486,272
11Dec 24, 2025 00:054,028163,721,687121,920,00010,992,0002,379,776
12Dec 24, 2025 00:044,032154,502,163124,048,0009,003,0002,404,352
13Dec 24, 2025 00:054,041155,997,038125,347,0008,022,0002,281,472
14Dec 24, 2025 00:044,060161,510,298123,980,0009,998,0002,428,928
15Dec 24, 2025 00:054,090157,603,811129,967,0004,998,0002,363,392