Create uva10340.cpp

wrong answer