codeforces April Fools Day Contest 2014, problem: (C) Magnum Opus editorial: http://codeforces.com/blog/entry/11391
codeforces April Fools Day Contest 2014, problem: (C) Magnum Opus solution: http://ideone.com/szICct
#include <iostream> #include <cstdio> #include <algorithm> using namespace std; int main() { int a, b, c, d, e, m; scanf("%d%d%d%d%d", &a, &b, &c, &d, &e); c/=2, d/=7, e/=4; m=min(a, b); m=min(m, c); m=min(m, d); m=min(m, e); printf("%d", m); return 0; }
No comments:
Post a Comment