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 listOct 17, 2026 05:01e1011e1011Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2026 05:0604,679,252,3274,666,204,0002,002,0002,113,536expected "1022560 ", got "1022559 "
2Oct 17, 2026 05:0604,651,186,9184,635,560,0003,052,0002,113,536expected "1026493 ", got "1026492 "
3Oct 17, 2026 05:06140,6394,651,941,7414,638,986,0002,113,0002,113,536
4Oct 17, 2026 05:06140,6944,653,754,6354,640,912,0002,005,0002,113,536
5Oct 17, 2026 05:06141,3384,675,010,1854,662,123,0002,036,0002,113,536
6Oct 17, 2026 05:06142,6664,719,123,8544,704,844,0003,134,0002,113,536
7Oct 17, 2026 05:06147,7074,885,294,0374,872,314,0002,021,0002,113,536
8Oct 17, 2026 05:06153,2525,068,192,2975,055,317,0002,003,0002,113,536
9Oct 17, 2026 05:06172,8535,715,646,1715,702,107,0002,066,0002,113,536