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 27, 2026 15:09limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:110253,435,400219,436,00014,027,0002,506,752expected "1020807 ", got "1020806"
2Apr 27, 2026 15:117,045251,842,214217,547,00014,968,0002,527,232
3Apr 27, 2026 15:117,052251,168,865217,749,00014,982,0002,527,232
4Apr 27, 2026 15:117,058254,963,869218,948,00013,996,0002,535,424
5Apr 27, 2026 15:117,066249,827,511219,195,00014,012,0002,535,424
6Apr 27, 2026 15:117,070251,076,014219,292,00014,018,0002,519,040
7Apr 27, 2026 15:117,071249,885,481218,349,00015,024,0002,527,232
8Apr 27, 2026 15:117,077249,250,004217,595,00015,970,0002,326,528
9Apr 27, 2026 15:117,094253,430,374219,110,00015,007,0002,531,328