HDU6124 Euler theorem
来源:互联网 发布:linux arp表老化时间 编辑:程序博客网 时间:2024/05/25 23:56
【题目链接】
http://acm.hdu.edu.cn/showproblem.php?pid=6124
题目意思
告诉你本来想求a mod b,发现b不知道了,问你给定a有多少a mod b不同的结果
解题思路
当b大于a时,mod注定是a本身。当(a-1)/2
代码部分
#include<bits/stdc++.h>using namespace std;int main() ///不用怀疑就这么短{ int t,a; scanf("%d",&t); while (t--) { scanf("%d",&a); printf("%d\n",(a-1)/2+2); } return 0;}
阅读全文
0 0
- hdu6124--Euler theorem
- HDU6124 Euler theorem
- HDU6124-Euler theorem
- HDU6124 Euler theorem 签到
- HDU6124-Euler theorem
- hdu6124 Euler theorem -多校联盟7
- hdu6124 Euler theorem 2017多校1005签到题
- Hdu6124 Euler theorem(2017多校第7场)
- Euler theorem(水)
- 杭电 Euler theorem
- HDU 6124 Euler theorem
- hdu 6124 Euler theorem
- HDU 6124-Euler theorem
- HDU 6124-Euler theorem
- hdu 6124 Euler theorem
- HDU 6124 Euler theorem【】
- hdu 6124 Euler theorem
- HDU 6124 Euler theorem
- collection 和collections有什么区别
- 2017.8.15 阿狸的打字机 失败总结
- ubuntu16.04安装mlab步骤及错误处理
- Django搭建个人博客
- Z
- HDU6124 Euler theorem
- 整数转换成固定位数的字符串
- 定位new表达式
- HTML与CSS的爱恨情仇第三式---第一系列
- Harmonic Number Light oj 调和级数+欧拉常数
- 浅谈Flex布局【CSS】
- spring+websocket 前台500问题总结
- [js高手之路] vue系列教程
- 算法-1到n中所有和为m的组合