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 21, 2021 17:34Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2021 17:3400000Error: main.cpp:13:9: warning: 'BUFFER_SIZE' macro redefined [-Wmacro-redefined] #define BUFFER_SIZE 300'000'000 ^ main.cpp:12:9: note: previous definition is here #define BUFFER_SIZE 150'000'000 ^ main.cpp:14:9: warning: 'BUFFER_SIZE' ...
2Aug 21, 2021 17:3400000Error: main.cpp:14:9: warning: 'BUFFER_SIZE' macro redefined [-Wmacro-redefined] #define BUFFER_SIZE 288*1024*1024 ^ main.cpp:13:9: note: previous definition is here #define BUFFER_SIZE 300'000'000 ^ 1 warning generated. /usr/bin/ld: /u...
3Aug 21, 2021 17:3500000Error: /usr/bin/ld: /usr/lib/llvm-10/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-10/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see in...