CodeForces 630A:Again Twenty Five!【水题】
2016-03-09 14:40
681 查看
Again Twenty Five!
Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
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, 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.
Sample Input
Input
Output
Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
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, 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.
Sample Input
Input
2
Output
25
AC代码:
#include<stdio.h> #include<iostream> #include<string.h> #include<algorithm> using namespace std; int main() { long long n; while(scanf("%lld",&n)!=EOF) { printf("25\n"); } return 0; }
相关文章推荐
- 【HDU 5366】The mook jong 详解
- HDU 5240 Exam (好水的题)
- 北大—1006——Biorhythms
- 时间计算(heaven.pas/cpp)
- 工作依赖(job.cpp/pas)
- 题目 英雄 (BFS)
- kmp 学习 hihocoder #1015
- HDU 1096 A+B for Input-Output Practice (VIII)
- P1478
- P1035
- P1008 难度2.7
- 2020 绝对值排序
- 2021 发工资咯
- 2022 海选女主角
- 2024 C语言合法标识符
- 2025 查找最大元素
- 2026 首字母变大写
- 2027 统计元音
- 2028 Lowest Common Multiple Plus
- 2018 母牛的故事