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 13:43Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:38Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:440133,140,705118,445,0004,006,0002,117,632expected "2108100 ", got "1190530 "stderr
2Oct 15, 2026 20:440133,238,186117,980,0004,009,0002,117,632expected "2108762 ", got "1190248 "stderr
3Oct 15, 2026 20:44012,992,90002,032,0002,125,824expected "167 ", got "128 "stderr
4Dec 19, 2025 13:425,966223,669,363191,886,0004,997,0002,510,848
5Dec 19, 2025 13:435,970214,449,244191,012,0006,000,0002,371,584
6Dec 19, 2025 13:415,978217,861,769190,272,0007,010,0002,351,104
7Dec 19, 2025 13:415,978228,803,890193,253,0004,005,0002,519,040
8Dec 19, 2025 13:415,981225,636,105193,367,0004,007,0002,514,944
9Dec 19, 2025 13:435,987224,806,096190,590,0006,984,0002,506,752
10Dec 19, 2025 13:415,988227,058,588191,617,0005,988,0002,502,656
11Dec 19, 2025 13:435,989224,779,864190,636,0006,986,0002,330,624
12Dec 19, 2025 13:425,996227,177,398191,882,0005,996,0002,519,040
13Dec 19, 2025 13:426,000220,449,674194,011,0004,000,0002,514,944
14Dec 19, 2025 13:436,001225,573,353193,045,0005,001,0002,506,752
15Dec 19, 2025 13:436,002219,544,359193,074,0005,001,0002,428,928
16Dec 19, 2025 13:426,004219,809,148194,133,0004,002,0002,523,136
17Dec 19, 2025 13:436,004220,146,262192,118,0006,003,0002,514,944
18Dec 19, 2025 13:436,008222,530,642192,249,0006,007,0002,461,696
19Dec 19, 2025 13:416,008222,169,592193,252,0005,006,0002,523,136
20Dec 19, 2025 13:426,012228,436,253193,377,0005,009,0002,514,944
21Dec 19, 2025 13:436,014226,448,576194,469,0003,989,0002,441,216
22Dec 19, 2025 13:416,021221,526,156192,709,0005,990,0002,318,336
23Dec 19, 2025 13:426,021222,709,408194,692,0003,993,0002,510,848
24Dec 19, 2025 13:436,025224,867,712194,826,0003,996,0002,285,568
25Dec 19, 2025 13:436,027220,690,396196,894,0001,998,0002,437,120
26Dec 19, 2025 13:436,027222,672,449193,909,0004,997,0002,408,448
27Dec 19, 2025 13:436,028224,641,777193,936,0004,998,0002,441,216
28Dec 19, 2025 13:436,029220,467,672192,946,0005,998,0002,510,848
29Dec 19, 2025 13:436,029222,195,615193,969,0004,999,0002,396,160
30Dec 19, 2025 13:416,030223,938,125193,991,0004,999,0002,510,848
31Dec 19, 2025 13:426,031220,490,417195,032,0004,000,0002,424,832
32Dec 19, 2025 13:426,036221,849,250195,188,0004,003,0002,301,952
33Dec 19, 2025 13:426,037221,150,120193,203,0006,006,0002,289,664
34Dec 19, 2025 13:436,038225,230,688193,234,0006,007,0002,523,136
35Dec 19, 2025 13:416,039228,662,472195,295,0004,006,0002,494,464
36Dec 19, 2025 13:436,042232,337,463193,390,0005,981,0002,281,472
37Dec 19, 2025 13:436,045230,038,025192,501,0006,981,0002,490,368
38Dec 19, 2025 13:426,047232,470,123193,574,0005,986,0002,514,944
39Dec 19, 2025 13:436,049224,263,282195,616,0003,992,0002,301,952
40Dec 19, 2025 13:426,050224,519,093191,651,0007,985,0002,269,184
41Dec 19, 2025 13:416,050223,058,929194,654,0004,991,0002,514,944
42Dec 19, 2025 13:426,065222,795,843195,156,0005,004,0002,519,040
43Dec 19, 2025 13:436,071227,346,840193,344,0007,012,0002,342,912
44Dec 19, 2025 13:436,076222,985,616196,533,0003,990,0002,514,944
45Dec 19, 2025 13:426,077231,880,521195,540,0004,988,0002,420,736
46Dec 19, 2025 13:426,092221,839,003197,030,0004,000,0002,367,488
47Dec 19, 2025 13:426,111225,120,867195,680,0005,990,0002,281,472
48Dec 19, 2025 13:426,177229,908,651196,831,0006,994,0002,514,944
49Dec 19, 2025 13:426,225235,771,952198,445,0006,980,0002,523,136
50Dec 19, 2025 13:426,228229,470,774200,548,0004,988,0002,301,952
51Dec 19, 2025 13:436,232227,269,563200,672,0004,991,0002,437,120