Experimental Educational Round: VolBIT Formulas Blitz(A)数学

来源:互联网 发布:考研数学文都网络课程 编辑:程序博客网 时间:2024/05/29 15:11

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, n can 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
2
output
25



题意:5^n,输出最后2位


题解:因为n>2,直接输出25就好了


#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<vector>#include<set>#include<string>using namespace std;#define N 1000+5int main(){#ifdef CDZSCfreopen("i.txt","r",stdin);#endifstring n;cin>>n;if(n=="1")puts("5");elseputs("25");return 0;}










0 0
原创粉丝点击