/* -*- coding: utf-8 -*- * * 32.cc: No.32 貯金箱の憂鬱 - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int N = 3; const int cs[N] = {100, 25, 1}; /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int ns[N], sum = 0; for (int i = 0; i < N; i++) (cin >> ns[i]), sum += ns[i] * cs[i]; sum %= 1000; int cnt = 0; for (int i = 0; i < N; i++) { cnt += sum / cs[i]; sum %= cs[i]; } printf("%d\n", cnt); return 0; }