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 10:13anboto1anboto1Error
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 10:150187,074,619168,651,0009,186,0002,117,632expected "1019632 ", got "1019631 "
2Jun 8, 2026 10:150189,009,214169,389,0009,334,0002,117,632expected "1020996 ", got "1020995 "
3Jun 8, 2026 10:150186,907,090167,941,0009,230,0002,117,632expected "1024858 ", got "1024857 "
4Jun 8, 2026 10:155,348185,784,761167,250,0009,256,0002,117,632
5Jun 8, 2026 10:155,359186,551,777167,604,0009,255,0002,117,632
6Jun 8, 2026 10:155,375187,082,023168,208,0009,181,0002,117,632
7Jun 8, 2026 10:155,392187,763,458168,555,0009,394,0002,117,632
8Jun 8, 2026 10:155,434188,528,582169,926,0009,397,0002,117,632
9Jun 8, 2026 10:155,454189,728,556170,582,0009,408,0002,117,632