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 14:19highloadLLMhighloadLLMError
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 14:200288,168,945250,516,00028,235,0002,117,632expected "1025506 ", got "1025505 "
2Jun 8, 2026 14:200286,864,441249,298,00028,139,0002,117,632expected "1023569 ", got "1023568 "
3Jun 8, 2026 14:208,352284,942,742247,675,00027,942,0002,117,632
4Jun 8, 2026 14:208,373285,911,527248,332,00027,982,0002,117,632
5Jun 8, 2026 14:208,398286,959,145248,189,00028,966,0002,117,632
6Jun 8, 2026 14:208,401287,230,120249,266,00027,973,0002,117,632
7Jun 8, 2026 14:208,405286,656,171248,640,00028,747,0002,117,632
8Jun 8, 2026 14:208,417287,077,746249,730,00028,061,0002,117,632
9Jun 8, 2026 14:208,431288,011,878249,204,00029,020,0002,117,632