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 listJul 9, 2024 08:21matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2024 08:2100000Error: expected "1025683 ", got "1025684 "stderr
2Jul 9, 2024 08:2100000Error: expected "1019214 ", got "1019215 "stderr
3Jul 9, 2024 08:2200000Error: expected "1023836 ", got "1023837 "stderr
4Jul 9, 2024 08:2200000Error: expected "1018625 ", got "1018624 "stderr
5Jul 9, 2024 08:2200000Error: expected "1021860 ", got "1021861 "stderr
6Jul 9, 2024 08:2200000Error: expected "1020967 ", got "1020966 "stderr
7Jul 9, 2024 08:214,250218,973,779140,240,35802,207,744
8Jul 9, 2024 08:214,258200,448,124140,506,16802,334,720
9Jul 9, 2024 08:214,272200,800,982140,982,71202,211,840
10Jul 9, 2024 08:214,290202,834,030141,560,06402,191,360
11Jul 9, 2024 08:214,294201,352,576141,692,52502,211,840
12Jul 9, 2024 08:214,303215,221,130142,014,20602,199,552