- 博客(3)
- 收藏
- 关注
原创 快速幂
Given 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 which is the number of test c...
2018-10-14 15:15:18 107
原创 大数相加
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1<=T<=20) which means the num...
2018-10-14 14:38:48 82
转载 判断素数
对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39<=x<y<=50),判定该表达式的值是否都为素数。Input输入数据有多组,每组占一行,由两个整数x,y组成,当x=0,y=0时,表示输入结束,该行不做处理。Output对于每个给定范围内的取值,如果表达式的值都为素数,则输出"OK",否则请输出“Sorry”,每组输出占一行。Sampl...
2018-10-14 14:35:41 170
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人