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 19, 2025 08:53Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:24Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:54099,951,40282,571,0006,477,0002,117,632expected "2108111 ", got "1191898 "stderr
2Oct 31, 2026 16:54099,339,85282,054,0006,421,0002,117,632expected "2102065 ", got "1185268 "stderr
3Oct 31, 2026 16:544812,683,51401,584,0002,125,824stderr
4Dec 19, 2025 08:547,594281,284,669239,616,00010,982,0002,510,848
5Dec 19, 2025 08:547,626281,833,244237,684,00013,981,0002,363,392
6Dec 19, 2025 08:547,695278,743,903248,952,0004,999,0002,473,984
7Dec 19, 2025 08:547,701280,335,434248,134,0006,003,0002,334,720
8Dec 19, 2025 08:547,709284,567,283247,372,0007,010,0002,371,584
9Dec 19, 2025 08:537,712282,906,772249,518,0004,990,0002,314,240
10Dec 19, 2025 08:547,742283,714,056245,504,0009,979,0002,506,752
11Dec 19, 2025 08:547,747281,605,738247,670,0007,989,0002,519,040
12Dec 19, 2025 08:547,754279,365,083249,893,0005,997,0002,277,376
13Dec 19, 2025 08:547,770280,329,244247,381,0009,013,0002,269,184
14Dec 19, 2025 08:547,772284,184,011247,494,0008,981,0002,269,184
15Dec 19, 2025 08:547,849283,682,121250,003,0009,000,0002,334,720
16Dec 19, 2025 08:547,926283,735,540252,559,0008,984,0002,453,504
17Dec 19, 2025 08:538,243294,357,123264,028,0008,000,0002,334,720
18Dec 19, 2025 08:538,757310,530,719283,993,0004,999,0002,486,272