#include <bits/stdc++.h>
using namespace std;
int main()
{
long sum = 0;
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
long in;
cin >> in;
in = (long)pow(2, in);
string str = to_string(in);
str = str.length() > 2 ? str.substr(str.length() - 2) : str;
in = stoi(str);
sum += in;
}
cout << sum % 100 << endl;
return 0;
}
Created
July 1, 2020 08:50
-
-
Save therohitdas/933f537889bc15e549d6d4168a8e6c64 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E
--
Follows time limitation. Output time 1s