17383

NC17383 A Simple Problem with Integers

来记录一下实现方式,真的有点妙。 首先通过打表可以发现进入循环节前的长度最多为 \(4\),最小循环节的长度只有 \(1,2,3,6\)。 所以我们可以记录当前平方了几次,到达 \(4\) 次后算出长度为 \(6\) 的循环节中的数,之后只要记录平方次数模 \(6\) 后的值即可。 放一下 \(O( ......
Integers Problem Simple 17383 with

NC17383 A Simple Problem with Integers

题目链接 题目 题目描述 You have N integers A1, A2, ... , AN. You are asked to write a program to receive and execute two kinds of instructions: C a b means perf ......
Integers Problem Simple 17383 with
共2篇  :1/1页 首页上一页1下一页尾页