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 04:33Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:47025,473,44813,481,0001,087,0002,117,632expected "90 ", got "75 "stderr
2Oct 31, 2026 16:47013,964,8341,492,0001,717,0002,125,824expected "255 ", got "230 "stderr
3Oct 31, 2026 16:47013,861,8101,548,0001,548,0002,125,824expected "875 ", got "750 "stderr
4Dec 20, 2025 04:335,715211,790,120182,601,0005,986,0002,523,136
5Dec 20, 2025 04:335,719217,558,733182,730,0005,991,0002,510,848
6Dec 20, 2025 04:335,726210,129,803181,963,0006,998,0002,510,848
7Dec 20, 2025 04:335,727219,546,912181,996,0006,999,0002,433,024
8Dec 20, 2025 04:335,728210,972,866184,031,0005,000,0002,351,104
9Dec 20, 2025 04:335,729213,807,685183,065,0006,002,0002,519,040
10Dec 20, 2025 04:335,729213,595,458183,066,0006,002,0002,506,752
11Dec 20, 2025 04:335,732213,554,971183,145,0006,004,0002,494,464
12Dec 20, 2025 04:335,733211,653,642184,190,0005,005,0002,510,848
13Dec 20, 2025 04:335,734214,156,352186,235,0003,003,0002,490,368
14Dec 20, 2025 04:335,735211,843,125185,240,0004,005,0002,510,848
15Dec 20, 2025 04:335,736211,465,908183,290,0006,009,0002,519,040
16Dec 20, 2025 04:335,737216,387,056184,315,0005,008,0002,453,504
17Dec 20, 2025 04:335,762219,318,367185,130,0005,003,0002,465,792
18Dec 20, 2025 04:335,765218,322,051185,223,0005,006,0002,514,944
19Dec 20, 2025 04:335,766214,940,754184,273,0006,008,0002,465,792
20Dec 20, 2025 04:335,775218,679,959185,582,0004,988,0002,514,944
21Dec 20, 2025 04:335,834218,297,190184,537,0007,980,0002,514,944
22Dec 20, 2025 04:335,975220,148,927193,169,0004,003,0002,310,144
23Dec 20, 2025 04:335,977228,834,337193,225,0004,004,0002,338,816
24Dec 20, 2025 04:336,040232,347,783193,322,0006,010,0002,514,944