CodeForces - 630A Again Twenty Five! (水)
2016-03-07 22:15
567 查看
CodeForces
- 630A
Again Twenty Five!
Submit Status
Description
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.
Sample Input
Input
Output
- 630A
Again Twenty Five!
Time Limit: 500MS | Memory Limit: 65536KB | 64bit IO Format: %I64d & %I64u |
Description
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.
Sample Input
Input
2
Output
25
#include<stdio.h> #include<math.h> #include<string.h> #include<algorithm> #define INF 0x3f3f3f3f #define ll long long #define N 10010 #define M 1000000007 using namespace std; int main() { ll n; while(scanf("%lld",&n)!=EOF) { printf("25\n"); } return 0; }
相关文章推荐
- cf#345-B - Beautiful Paintings-暴力
- Pacific Trails Resort案例分析(第二章)
- 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
- Learning Multi-Domain Convolutional Neural Networks for Visual Tracking
- http://blog.csdn.net/liang12360640/article/details/50350648
- InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts
- 谈谈人工智能时代(AI)
- error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 中被引用
- 工作流的项目 activity-login-context.xml Failed to read schema document
- mongodb new file allocation failure
- 51nod1305 Pairwise Sum and Divide
- 2016 cherish & set sail
- Resize images and save thumbnails
- Climbing Stairs
- 李开复预测人机世纪大战:人工智能获胜概率很悬
- 李开复预测人机世纪大战:人工智能获胜概率很悬
- GenerateNewFileThroughDeleteDataByHaijian
- netstat下time_wait数过多引起的问题
- leetcode 每日一题 217. Contains Duplicate
- lintcode-easy-Trailing Zeros