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 listJun 8, 2026 03:58anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 03:590299,039,620277,891,00011,889,0002,117,632expected "1018839 ", got "1018839 66 66 0 4344 4344 0 68782 68782 0 78771 78771 0 78992 78992 0 78513 78513 0 78460 78460 0 79312 79312 0 78606 78606 0 79138 79138 0 79274 79274 0 78807 78807 0 78765 78765 0 78439 78439 0 78570 78570 0 "
2Jun 8, 2026 03:590299,574,113279,026,00011,320,0002,117,632expected "1025335 ", got "1025335 66 66 0 4342 4342 0 69211 69211 0 78899 78899 0 79375 79375 0 79495 79495 0 79081 79081 0 79516 79516 0 79735 79735 0 78990 78990 0 79257 79257 0 79361 79361 0 79367 79367 0 79477 79477 0 79163 79163 0 "
3Jun 8, 2026 03:590303,790,201282,576,00012,010,0002,117,632expected "1021983 ", got "1021983 66 66 0 4337 4337 0 68979 68979 0 79177 79177 0 79159 79159 0 78646 78646 0 79221 79221 0 78643 78643 0 79243 79243 0 79043 79043 0 79068 79068 0 78978 78978 0 79357 79357 0 79094 79094 0 78972 78972 0 "