백준 2475번 검증수
https://www.acmicpc.net/problem/2475 아이디어:함수 작성 // 2475#include using namespace std;int calc(int a, int b, int c, int d, int e) { return ((a * a) + (b * b) + (c * c) + (d * d) + (e * e)) % 10;}int main() { ios::sync_with_stdio(false); cin.tie(NULL); int a, b, c, d, e, f; cin >> a >> b >> c >> d >> e; f = calc(a, b, c, d, e); cout