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 listApr 29, 2026 20:21Alexander KrivolapovAlexander KrivolapovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 20:230516,241,246419,963,00078,993,0002,322,432expected "1020682 ", got "1020683 "
2Apr 29, 2026 20:2314,996516,928,492401,898,00092,976,0002,314,240
3Apr 29, 2026 20:2315,062513,844,851417,058,00080,011,0002,498,560
4Apr 29, 2026 20:2315,084518,287,798411,826,00085,963,0002,404,352
5Apr 29, 2026 20:2315,090518,466,833412,982,00084,996,0002,367,488
6Apr 29, 2026 20:2315,118518,879,304421,932,00076,987,0002,301,952
7Apr 29, 2026 20:2315,121516,453,292409,997,00088,999,0002,404,352
8Apr 29, 2026 20:2315,129517,440,267409,406,00089,869,0002,564,096
9Apr 29, 2026 20:2315,175532,793,636408,012,00092,775,0002,543,616