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 05:06Rajarshi 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:420128,348,836113,227,0004,169,0002,117,632expected "2104232 ", got "1187104 "stderr
2Oct 31, 2026 16:420127,379,318113,478,0003,028,0002,117,632expected "2108294 ", got "1190961 "stderr
3Oct 31, 2026 16:420127,710,797112,783,0004,061,0002,117,632expected "2107807 ", got "1190781 "stderr
4Dec 20, 2025 05:065,435203,832,152172,331,0007,013,0002,437,120
5Dec 20, 2025 05:055,437206,698,309174,405,0005,011,0002,412,544
6Dec 20, 2025 05:065,438206,611,783173,447,0006,015,0002,494,464
7Dec 20, 2025 05:055,439212,555,413174,510,0004,986,0002,281,472
8Dec 20, 2025 05:065,443209,073,941172,648,0006,985,0002,514,944
9Dec 20, 2025 05:055,452203,185,032175,933,0003,998,0002,510,848
10Dec 20, 2025 05:055,460208,304,878175,186,0005,005,0002,523,136
11Dec 20, 2025 05:065,461204,047,725177,204,0003,003,0002,334,720
12Dec 20, 2025 05:055,472202,760,754174,599,0005,986,0002,461,696
13Dec 20, 2025 05:065,473206,536,868173,638,0006,985,0002,428,928
14Dec 20, 2025 05:065,486207,834,781175,036,0006,001,0002,523,136
15Dec 20, 2025 05:055,491209,513,796178,196,0003,003,0002,514,944
16Dec 20, 2025 05:065,493207,181,666178,257,0003,004,0002,478,080
17Dec 20, 2025 05:065,494201,188,835176,294,0005,008,0002,342,912
18Dec 20, 2025 05:055,495216,405,335175,328,0006,011,0002,408,448
19Dec 20, 2025 05:065,502207,028,574175,593,0005,986,0002,453,504
20Dec 20, 2025 05:055,509210,676,060175,810,0005,993,0002,322,432
21Dec 20, 2025 05:065,526213,791,424176,359,0006,012,0002,514,944
22Dec 20, 2025 05:065,562211,680,023177,554,0005,984,0002,519,040
23Dec 20, 2025 05:055,575209,407,554178,983,0004,999,0002,502,656
24Dec 20, 2025 05:065,718211,881,120183,710,0004,992,0002,514,944
25Dec 20, 2025 05:065,732218,619,602183,166,0006,005,0002,433,024
26Dec 20, 2025 05:065,748212,443,106184,687,0004,991,0002,510,848
27Dec 20, 2025 05:065,751214,029,560185,800,0003,995,0002,281,472
28Dec 20, 2025 05:065,752212,365,200184,827,0004,995,0002,514,944
29Dec 20, 2025 05:065,773211,536,351185,511,0004,986,0002,379,776
30Dec 20, 2025 05:066,033221,933,159193,102,0006,003,0002,433,024