can any one help me why am i getting runtime error in the program. my program is
def call(a,b): print(((pow(a,b))%10)); def main(): n=input(); for x in range(n): import sys a,b = map(long,sys.stdin.readline().split()); a=a%10; if((a==0)or(a==1)or(a==5)or(a==6)): print(a); if(a==2 or a==7 or a==8 or a==3): call(a,b%4) if(b==4 or b==9): call(a,b%2); main(); i am solving lastdig2 problem of spoj http://www.spoj.pl/problems/LASTDIG2/ -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.