CodeForces-630A. Again Twenty Five!【找规律】

我不是女神ヾ 2022-08-20 09:21 97阅读 0赞

A. Again Twenty Five!

time limit per test

0.5 seconds

memory limit per test

64 megabytes

input

standard input

output

standard output

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?

Input

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

Output the last two digits of 5n without spaces between them.

Examples

input

  1. 2

output

  1. 25
  2. 解题思路:
  3. 就是求5^n的最后两位,一看就知道是25.
  4. #include<stdio.h>
  5. #include<string.h>
  6. #include<algorithm>
  7. using namespace std;
  8. char map[50];
  9. int main()
  10. {
  11. while(scanf("%s",map)!=EOF)
  12. {
  13. if(strcmp(map,"1")==0)
  14. {
  15. printf("5\n");
  16. }
  17. else
  18. {
  19. printf("25\n");
  20. }
  21. }
  22. return 0;
  23. }

发表评论

表情:
评论列表 (有 0 条评论,97人围观)

还没有评论,来说两句吧...

相关阅读