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.

Examples
input
2

output
25实际上,结果就是25,不放心可以用快速幂取模
#include<stdio.h>
//#include<bits/stdc++.h>
#include<string.h>
#include<iostream>
#include<math.h>
#include<sstream>
#include<set>
#include<queue>
#include<map>
#include<vector>
#include<algorithm>
#include<limits.h>
#define inf 0x7fffffff
#define INF 0x7fffffffffffffff
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
#define LL long long
#define ULL unsigned long long
using namespace std;
LL modl(LL a, LL b, LL c)        //快速幂取余a^b%c
{LL res, t;res = 1 % c;t = a % c;while (b){if (b & 1){res = res * t % c;}t = t * t % c;b >>= 1;}return res;
}
int main()
{LL n;cin>>n;cout<<modl(5,n,100);return 0;
}

  

转载于:https://www.cnblogs.com/yinghualuowu/p/5204097.html

Experimental Educational Round: VolBIT Formulas Blitz A相关推荐

  1. Experimental Educational Round: VolBIT Formulas Blitz-R. Game

    原题链接 R. Game time limit per test 0.5 seconds memory limit per test 64 megabytes input standard input ...

  2. [Educational Round 5][Codeforces 616F. Expensive Strings]

    这题调得我心疲力竭...Educational Round 5就过一段时间再发了_(:з」∠)_ 先后找了三份AC代码对拍,结果有两份都会在某些数据上出点问题...这场的数据有点水啊_(:з」∠)_[ ...

  3. Codeforces Educational Round 5

    Codeforces Educational Round 5 通过数: 4 Standing: 196/4176 题目链接: http://codeforces.com/contest/616 A: ...

  4. Educational Round 66 题解

    作为橙名来水了一发-- 这次题目就比上次良心多了.7题有5题会做. 然而风格仍然很怪异--还是练少了? A 水题.不过一开始没注意细节挂了几发,罚时罚的真痛-- 明显是能除以 $k$ 就除以 $k$, ...

  5. Codeforces Educational round 58

    Ediv2 58 随手AK.jpg D 裸的虚树,在这里就不写了 E 傻逼贪心?这个题过的比$B$都多.jpg #include <cstdio> #include <algorit ...

  6. CF Educational Round 23 F.MEX Queries

    写了3小时 = =.这两天堕落了,昨天也刷了一晚上hihocoder比赛,还爆了零.之后得节制点了,好好准备考研.. 首先很容易想到 压缩数据 + 线段树 然后对于Pushdown真很难写..需要牵涉 ...

  7. educational round 前缀和_总结分析634个以re为前缀的单词得出了re为前缀组合单词意思规律

    学英语需要有耐心.恒心!本文稍长!本文的目的所在是让读者在一篇文章里可以理解634个re前缀的单词,更重要的是可以复习到对应的634个常见的基础单词. 看下面的动图,小球从高点回到底部,从底部回到高点 ...

  8. Educational Round 64 题解

    前言: 这场太难了--我一个紫名只打出两题--(虽说感觉的确发挥不够好) 一群蓝绿名的dalao好像只打了两题都能升分的样子-- 庆幸的是最后A出锅然后unr了>///< 写一波题解纪念这 ...

  9. CodeForces616:Educational Round 5

    文章目录 前言 A Comparing Two Long Integers\text{A Comparing Two Long Integers}A Comparing Two Long Intege ...

最新文章

  1. 用Go 构建一个区块链 -- Part 5: 地址
  2. sails框架发送邮件
  3. android 应用间共享数据,调用其他app数据资源
  4. JAVA变量的数据类型样例
  5. Linux的Nginx八:服务器配置
  6. jframe透明_使JFrame透明
  7. 算法:老鼠走迷宫问题
  8. JVM虚拟机选项:Xms Xmx PermSize MaxPermSize区别
  9. 黑马程序员--C语言基础之--sizeof()运算符的使用以及注意
  10. 链表合并面试100题系列之18链表合并
  11. cuda stream
  12. 关于JS中apply和call详细解答
  13. 【HDU 6020】 MG loves apple (乱搞?)
  14. URL传递中文参数乱码问题
  15. c语言输入学生成绩q退出,C语言-学生成绩管理系统实验报告13页
  16. 马化腾:这个市场不是拼钱、拼流量,而是拼团队、拼使命感和危机感
  17. Python123 货币转换Ⅰ
  18. oracle gbk 无法识别,oracle 字符集总结(超出GBK范围的字符存取问题未解决)
  19. Your Command Line Tools are too outdated
  20. html+svg原理,SVG无功补偿的原理是什么

热门文章

  1. linux中jstack命令详解,Linux jstack命令详解
  2. 国控实时空气质量数据所有站点,站点编号,经纬度
  3. 周大福珠宝集团与陕西历史博物馆、西北工业大学签署三方合作协议
  4. linux(centos8):阿里云ecs配置smtps发邮件(解决不能通过25端口发邮件问题)
  5. 基于新一代MetaSpore平台快速搭建工业级推荐系统
  6. 【C++】【MATLAB】三元二次多项式拟合求极值点原理+代码
  7. 如何制作称重仪表与计算机之间的连线
  8. Retrofit网络框架的封装使用
  9. 解决QWebEngineView无法播放H5 Mp4问题
  10. stp实验心得_自制STP配置实验