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 05:37anboto1anboto1Error
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 05:370195,450,219175,888,0009,859,0002,117,632expected "1022838 ", got "1022837 "
2Jun 8, 2026 05:370200,878,449178,658,00010,318,0002,117,632expected "1023592 ", got "1023591 "
3Jun 8, 2026 05:375,627195,036,273175,928,0009,766,0002,117,632
4Jun 8, 2026 05:375,628195,481,815175,973,0009,754,0002,117,632
5Jun 8, 2026 05:375,652195,753,018176,672,0009,848,0002,117,632
6Jun 8, 2026 05:375,670196,438,850177,365,0009,751,0002,117,632
7Jun 8, 2026 05:375,709198,230,658178,759,0009,662,0002,117,632
8Jun 8, 2026 05:375,712198,256,132178,590,0009,930,0002,117,632
9Jun 8, 2026 05:375,903212,948,696185,088,0009,734,0002,117,632