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 listAug 30, 2022 18:02Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 30, 2022 18:0400000Error: expected "1022138 ", got "1022137"
2Aug 30, 2022 18:0200000Error: expected "1024090 ", got "1024089"
3Aug 30, 2022 18:024,832223,040,191159,468,46102,289,664
4Aug 30, 2022 18:044,839228,519,277159,688,50402,301,952
5Aug 30, 2022 18:024,850212,832,050160,044,23102,174,976
6Aug 30, 2022 18:044,853231,727,160160,138,30902,301,952
7Aug 30, 2022 18:024,853219,450,753160,151,93802,252,800
8Aug 30, 2022 18:024,855183,221,374157,205,0003,003,0002,273,280
9Aug 30, 2022 18:024,858184,689,117154,289,0006,011,0002,510,848
10Aug 30, 2022 18:024,859223,993,788160,337,93802,297,856
11Aug 30, 2022 18:044,864216,023,065160,516,57302,179,072
12Aug 30, 2022 18:024,866228,939,258160,586,50402,293,760
13Aug 30, 2022 18:024,867223,439,655160,616,22702,306,048
14Aug 30, 2022 18:024,891188,557,420157,384,0004,009,0002,392,064
15Aug 30, 2022 18:024,899193,031,680156,667,0004,989,0002,396,160
16Aug 30, 2022 18:024,900191,691,304156,719,0004,991,0002,396,160
17Aug 30, 2022 18:024,910184,747,946157,029,0005,000,0002,334,720
18Aug 30, 2022 18:024,915186,154,040157,182,0005,005,0002,273,280
19Aug 30, 2022 18:024,916196,521,681158,230,0004,005,0002,322,432
20Aug 30, 2022 18:024,938184,754,817157,958,0004,998,0002,387,968