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 13, 2026 20:43Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 20:440640,006,399618,995,00011,738,0002,129,920expected "1026867 ", got "1026866 "
2Jun 13, 2026 20:4419,134641,003,723619,520,00011,912,0002,129,920
3Jun 13, 2026 20:4419,144641,161,898619,789,00011,983,0002,129,920
4Jun 13, 2026 20:4419,194642,954,208621,524,00011,896,0002,129,920
5Jun 13, 2026 20:4419,209643,328,464622,003,00011,923,0002,129,920
6Jun 13, 2026 20:4419,427654,753,156629,075,00012,020,0002,129,920
7Jun 13, 2026 20:4419,679664,286,606637,005,00012,421,0002,129,920
8Jun 13, 2026 20:4419,742667,337,075639,450,00012,054,0002,129,920
9Jun 13, 2026 20:4420,045671,123,681649,688,00011,816,0002,129,920