ulvis.paste.net

Paste Search Dynamic
Recent pastes
sum
  1. def aux(a):
  2.     #st=str((1<<1)**a)
  3.  
  4.     #string sstr=str.size() > 2 ? str.substr(str.size() - 2) : str;
  5.     i=len(str((1<<1)**a))
  6.     if(i>2):
  7.         return int(str((1<<1)**a)[i-2:])
  8.     else:
  9.         return int(str((1<<1)**a))
  10. n=input()
  11. sum=0
  12. a=map(int,raw_input().split())
  13. for i in xrange(n):
  14.     sum=(sum%100+aux(a[i])%100)%100
  15. print sum
Parsed in 0.004 seconds