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 listApr 7, 2025 21:38Aniruddha DebAniruddha DebError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2025 21:3700000Error: expected "1019478 ", got "1019477 "stderr
2Apr 7, 2025 21:3820,464703,947,033660,341,00014,985,0002,473,984
3Apr 7, 2025 21:3820,468699,063,012662,468,00012,989,0002,367,488
4Apr 7, 2025 21:3820,635706,538,629670,942,0009,999,0002,371,584
5Apr 7, 2025 21:3820,678705,662,147670,392,00011,989,0002,531,328
6Apr 7, 2025 21:3820,690706,047,495667,762,00014,994,0002,531,328
7Apr 7, 2025 21:3820,706709,455,538674,295,0009,003,0002,314,240
8Apr 7, 2025 21:3821,134722,849,160684,448,00012,989,0002,363,392
9Apr 7, 2025 21:3821,166720,089,960687,488,00010,991,0002,453,504
10Apr 7, 2025 21:3821,286725,558,454689,435,00012,989,0002,359,296