hdu-1163 Eddy's digital Roots
来源:互联网 发布:sql数据库教学视频 编辑:程序博客网 时间:2024/06/05 18:33
#include<stdio.h>int main(){ int n,m,i,j,t; while(~scanf("%d",&n),n!=0) { t=n; for(i=2;i<=n;i++) t=(t*n)%9; if(t==0) printf("%d\n",9); else printf("%d\n",t); } return 0;}九余数定理,这个定理我懂,但是这个定理跟这个题目的关系我就不懂了。。。。。
0 0
- hdu 1163 Eddy's digital Roots
- hdu 1163 Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- 数论---HDU 1163 Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- hdu 1163 Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- hdu(1163)Eddy's digital Roots
- HDU 1163 Eddy's digital Roots(数论)
- hdu 1163 Eddy's digital Roots
- hdu 1163 Eddy's digital Roots (数论)
- hdu-1163-Eddy's digital Roots
- HDU 1163 Eddy's digital Roots
- hdu-oj 1163 Eddy's digital Roots
- hdu 1163 Eddy’s digital Roots
- hdu 1163 Eddy's digital Roots
- 上传下载分布式部署FASTDFS安装与配置
- Mybatis3源码分析(03)-加载Configuration-ResultMap说明
- js判断IE版本
- Android中的windowSoftInputMode属性详解
- sql查看alert日志
- hdu-1163 Eddy's digital Roots
- spring
- Java之——serialVersionUID的作用
- Spring中如何配置Hibernate事务
- iOS开发实现打电话、发邮件等外部应用的关联
- 图像噪声和滤波
- Eclipse Java注释模板设置详解
- Source insight 使用TIPS
- memeache 类封装