링크 : https://www.acmicpc.net/problem/2475
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> input (5);
for(int i = 0; i < 5; i++){
cin >> input[i];
}
int sum = 0;
for(int num : input){
sum += (num*num);
}
cout << sum%10;
return 0;
}