Count photos - MATLAB Cody - MATLAB Central

Problem 509. Count photos

Difficulty:Rate

Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total number of pictures.

Solution Stats

60.25% Correct | 39.75% Incorrect
Last Solution submitted on Aug 26, 2025

Problem Comments

Solution Comments

Show comments
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0
0

Problem Recent Solvers421

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!