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:20Rajarshi 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:47015,008,1661,210,0002,587,0002,125,824expected "1282 ", got "1051 "stderr
2Oct 31, 2026 16:47012,706,11102,033,0002,125,824expected "264 ", got "221 "stderr
3Oct 31, 2026 16:470130,452,880115,357,0004,202,0002,117,632expected "2104540 ", got "1187202 "stderr
4Dec 20, 2025 04:215,753218,411,733185,852,0003,996,0002,281,472
5Dec 20, 2025 04:215,781216,333,476185,790,0004,994,0002,502,656
6Dec 20, 2025 04:205,809214,098,066184,702,0006,988,0002,301,952
7Dec 20, 2025 04:215,812216,252,498185,813,0005,993,0002,510,848
8Dec 20, 2025 04:215,822217,726,779188,131,0004,002,0002,510,848
9Dec 20, 2025 04:215,825222,830,480188,234,0004,004,0002,281,472
10Dec 20, 2025 04:205,846219,198,408186,920,0005,997,0002,355,200
11Dec 20, 2025 04:215,846218,480,560187,909,0004,997,0002,494,464
12Dec 20, 2025 04:216,051225,860,717195,680,0003,993,0002,510,848
13Dec 20, 2025 04:216,052227,156,094195,734,0003,994,0002,449,408
14Dec 20, 2025 04:216,073228,157,875194,436,0005,982,0002,478,080
15Dec 20, 2025 04:206,083225,643,659195,761,0004,993,0002,523,136