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 6, 2024 20:28Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2024 20:3200000Error: expected "1020839 ", got "1020838 "stderr
2Jul 6, 2024 20:3300000Error: expected "1020656 ", got "1020654 "stderr
3Jul 6, 2024 20:3300000Error: expected "1023142 ", got "1023141 "stderr
4Jul 6, 2024 20:3300000Error: expected "1019078 ", got "1019077 "stderr
5Jul 6, 2024 20:3300000Error: expected "1022783 ", got "1022781 "stderr
6Jul 6, 2024 20:3300000Error: expected "1020137 ", got "1020135 "stderr
7Jul 6, 2024 20:3300000Error: expected "1021943 ", got "1021941 "stderr
8Jul 6, 2024 20:3200000Error: No answer to stdout. Died or killed?stderr
9Jul 6, 2024 20:3200000Error: expected "1023623 ", got "1023622 "stderr
10Jul 6, 2024 20:3200000Error: expected "1023384 ", got "1023381 "stderr
11Jul 6, 2024 20:3200000Error: expected "1020294 ", got "1020292 "stderr
12Jul 6, 2024 20:2800000Error: expected "1018991 ", got "1018987 "stderr
13Jul 6, 2024 20:3000000Error: expected "1025107 ", got "1025106 "stderr
14Jul 6, 2024 20:3000000Error: expected "1021825 ", got "1021824 "stderr
15Jul 6, 2024 20:3000000Error: expected "1025336 ", got "1025334 "stderr
16Jul 6, 2024 20:2900000Error: expected "1023612 ", got "1023610 "stderr
17Jul 6, 2024 20:2900000Error: expected "1026184 ", got "1026181 "stderr
18Jul 6, 2024 20:2900000Error: expected "1023316 ", got "1023315 "stderr
19Jul 6, 2024 20:2900000Error: expected "1022634 ", got "1022633 "stderr
20Jul 6, 2024 20:2900000Error: expected "1023931 ", got "1023927 "stderr
21Jul 6, 2024 20:2900000Error: expected "1025093 ", got "1025091 "stderr
22Jul 6, 2024 20:2900000Error: expected "1019495 ", got "1019493 "stderr