A. Sum of 2050
输入一个数,若与若干个2050,20500,205000······的和相等,则输出用到数字最少的个数,不能则输出-1.
如果可以,那么这个数必然可以被2050整除,如果不能,直接输出-1,后面的数都是2050的整十倍,最后最少的个数就是n除2050的商上的各位数之和。
来自 https://codeforces.com/contest/1517/problem/A
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>
#include<queue>
#include<stack>