The HR manager was disappointed again. The last applicant failed the interview the same way as 24 previous ones. "Do I give such a hard task?" — the HR manager thought. "Just raise number 5 to the power of n and get last two digits of the number. Yes, of course, ncan be rather big, and one cannot find the power using a calculator, but we need people who are able to think, not just follow the instructions."
Could you pass the interview in the machine vision company in IT City?
The only line of the input contains a single integer n (2 ≤ n ≤ 2·1018) — the power in which you need to raise number 5.
Output the last two digits of 5n without spaces between them.
2
25
五的阶乘,一直往下乘的话,在平方之后,后两位都是25,本题也应该可以直接输出25的,个人没注意范围,特判了很多地方..
#include<stdio.h>
int main()
{
int n;
while(~scanf("%d",&n))
{
int ans=25;
if(n==0)
{
ans=1;
}
else if(n==1)
{
ans=5;
}
printf("%d\n",ans);
}
return 0;
}