![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
----- 判断循环-循环节
谙忆
Java相关研发架构工作经验5年。拥有Java相关发明专利8余项。从事过支付行业,研发与架构的系统稳定地支撑着公司日千万交易笔数量级的支付和对账。
二手车SaaS内核研发3年经验+,拥有二手车行业SaaS相关发明专利6项,研发、架构的元数据内核与权限系统,每日亿万级接口调用。
Java企业开发丰富的理论知识和实战经验。2020年CSDN博客之星第12名,同时在一些社区担任名誉职位。认证为CSDN博客专家、CSDN专栏签约作者、InfoQ签约作者、阿里云ACE杭州同城会会长、阿里云社区认证专家、华为云·云享专家。
展开
-
HDOJ 1061 Rightmost Digit(循环问题)
Problem Description Given a positive integer N, you should output the most right digit of N^N.Input The input contains several test cases. The first line of the input is a single integer T which is t原创 2016-03-31 18:29:22 · 1882 阅读 · 0 评论 -
HDOJ 2114 Calculate S(n)(找周期)
Problem Description Calculate S(n).S(n)=1^3+2^3 +3^3 +……+n^3 .Input Each line will contain one integer N(1 < n < 1000000000). Process to end of file.Output For each case, output the last four dights原创 2016-03-25 15:53:41 · 1984 阅读 · 0 评论 -
HDOJ 1097 A hard puzzle(循环问题)
Problem Description lcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,so lcy makes the problem easier than begin. t原创 2016-03-21 20:17:08 · 1968 阅读 · 0 评论 -
HDOJ 2802 F(N)
Problem Description Giving the N, can you tell me the answer of F(N)?Input Each test case contains a single integer N(1<=N<=10^9). The input is terminated by a set starting with N = 0. This set sho原创 2016-03-01 16:52:39 · 1720 阅读 · 0 评论 -
HDOJ 1005 Number Sequence
Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n).Input The input co原创 2015-09-15 20:09:37 · 1405 阅读 · 0 评论 -
HDOJ 1005 Number Sequence
Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n).Input The input co原创 2016-02-14 16:56:33 · 1911 阅读 · 0 评论