同余定理
c++实现
BUPT留白
从模仿到超越,我还在路上!仍需努力,砥砺前行!
展开
-
I - Rightmost Digit
I - Rightmost DigitGiven a positive integer N, you should output the most right digit of N^N. InputThe input contains several test cases. The first line of the input is a single integer T原创 2017-07-28 11:01:05 · 270 阅读 · 0 评论 -
Divisible [数学]
Divisible [数学]时间限制: 1 Sec 内存限制: 128 MB提交: 126 解决: 58 统计题目描述给定一个很大的整数,我想知道它能否被9整除。输入有t组测试数据,每组数据给定一个整数N不存在前导0。(1 输出对每组测试数据,若N可以被9整除,输出1,反之输出0。样例输入31111111原创 2017-08-20 20:02:01 · 434 阅读 · 0 评论