Hero experence gains from defense

  • A query dear experienced veterans.

    How does hero experience accrue as a consequence of successful (or unsuccessful defense) where attacker splats lots of troops.

    To make scenario simple - lets say attacker has 10k crop troops @ 50 each = 500k attack strength;

    Defender village has 20k crop of troops @ 50 strength = 1m strength defense defending.

    Defender has his hero with say 10k Fighting strength defending the village.

    Say someone sends 1 hero ONLY with 10k fighting strength to support the defense.

    Simply put 10k troops SPLAT against the defense.

    How much experience do the two respective heros gain from this?