2017 多校7 1005 Euler theorem
来源:互联网 发布:淘宝导航条hot图标 编辑:程序博客网 时间:2024/06/05 08:38
http://acm.hdu.edu.cn/showproblem.php?pid=6124
找出一个数对所有的正整数取余的不同结果的数量, 是有规律的,把前10个写出来就可以看出来了
偶数:n/2+1 奇数:(n+1)/2+1;
#include<iostream>using namespace std;int main(){ int t; cin>>t; while(t--) { long long int a; cin>>a; long long int ans; if(a%2==0) ans=a/2+1; else ans=(a+1)/2+1; cout<<ans<<endl; } return 0;}
阅读全文
0 0
- 2017 多校7 1005 Euler theorem
- hdu6124 Euler theorem 2017多校1005签到题
- 2017杭电多校第七场1005Euler theorem
- 17多校contest 7- Euler theorem ( 数学规律
- Hdu6124 Euler theorem(2017多校第7场)
- hdu6124 Euler theorem -多校联盟7
- 2017杭电多校第七场1005 Euler theorem(勉强数论)HDU 6124
- HDU 6124 Euler theorem (2017 Multi-Univ Training Contest 7)
- Euler theorem(水)
- hdu6124--Euler theorem
- 杭电 Euler theorem
- HDU6124 Euler theorem
- HDU 6124 Euler theorem
- hdu 6124 Euler theorem
- HDU 6124-Euler theorem
- HDU6124-Euler theorem
- HDU6124 Euler theorem 签到
- HDU 6124-Euler theorem
- php 函数 array_splice
- Oracle学习笔记day01——Oracle概述
- hdu 5547 Sudoku(dfs)
- 更改电脑启动项的设置方法
- CodeForces
- 2017 多校7 1005 Euler theorem
- mysql最新版中文参考手册在线浏览
- php代码规范
- 配置SSH 无密码连接遇到的坑
- 数据MySQL占用空间数
- Android BroadcastRecevier广播消息
- glibc源码分析之access函数
- HDU 5542 The Battle of Chibi
- 15个开源的顶级人工智能工具