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 listJan 7, 2026 21:13Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:22Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:310208,022,592195,112,0002,213,0002,117,632expected "2904480 ", got "2885895 "
2Oct 31, 2026 16:310201,254,181188,260,0002,171,0002,117,632expected "2906309 ", got "2887708 "
3Oct 31, 2026 16:310165,766,040151,045,0002,206,0002,117,632expected "2905084 ", got "2886490 "
4Jan 7, 2026 04:0216,259560,868,845535,545,0001,001,0002,306,048
5Jan 7, 2026 21:1316,996590,456,503558,868,0001,999,0002,363,392
6Jan 7, 2026 04:0217,266595,640,480567,768,0001,999,0002,289,664
7Jan 7, 2026 04:0217,456604,795,553574,051,0002,000,0002,347,008
8Jan 7, 2026 21:1317,567605,730,518577,709,0001,998,0002,351,104
9Jan 7, 2026 21:1317,654612,689,719579,601,0002,997,0002,289,664
10Jan 7, 2026 04:0217,677608,639,663580,353,0002,996,0002,510,848
11Jan 7, 2026 04:0217,765614,599,759584,234,0002,000,0002,355,200
12Jan 7, 2026 21:1317,798614,021,344585,323,0002,001,0002,289,664
13Jan 7, 2026 04:0217,830613,836,992585,386,0002,996,0002,289,664
14Jan 7, 2026 04:0217,938617,606,229588,971,0002,999,0002,289,664
15Jan 7, 2026 21:1318,096622,019,387595,174,0002,000,0002,289,664
16Jan 7, 2026 21:1318,114623,348,309595,775,0001,999,0002,289,664
17Jan 7, 2026 21:1318,157628,765,343597,187,0002,000,0002,342,912
18Jan 7, 2026 21:1318,159626,289,466596,249,0003,001,0002,289,664
19Jan 7, 2026 21:1318,380638,366,651604,526,0001,998,0002,289,664
20Jan 7, 2026 04:0218,676643,570,064613,292,0003,001,0002,338,816
21Jan 7, 2026 04:0224,655841,872,082809,607,0003,998,0002,424,832