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 listMay 1, 2026 11:11Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2026 11:120544,112,353420,728,000106,930,0002,473,984expected "1021501 ", got "1021500 "
2May 1, 2026 11:1215,915538,369,389413,370,000111,829,0002,527,232
3May 1, 2026 11:1216,070550,065,012423,471,000106,866,0002,441,216
4May 1, 2026 11:1216,096551,619,040425,346,000105,837,0002,482,176
5May 1, 2026 11:1216,115550,799,147424,840,000106,959,0002,461,696
6May 1, 2026 11:1216,204553,125,252428,793,000105,949,0002,490,368
7May 1, 2026 11:1216,295556,495,156428,794,000108,947,0002,306,048
8May 1, 2026 11:1216,377554,898,750436,558,000103,895,0002,359,296
9May 1, 2026 11:1216,764571,319,851441,391,000111,845,0002,555,904