2023年1月15日
摘要: Problem Description“Well, it seems the first problem is too easy. I will let you know how foolish you are later.” feng5166 says. “The second problem i 阅读全文
posted @ 2023-01-15 18:15 ruoye123456 阅读(25) 评论(0) 推荐(0)
摘要: Problem DescriptionAs we all known , the Fibonacci series : F(0) = 1, F(1) = 1, F(N) = F(N - 1) + F(N - 2) (N >= 2).Now we define another kind of Fibo 阅读全文
posted @ 2023-01-15 16:28 ruoye123456 阅读(32) 评论(0) 推荐(0)
摘要: Problem DescriptionEverybody knows Fibonacci numbers, now we are talking about the Tribonacci numbers:T[0] = T[1] = T[2] = 1;T[n] = T[n - 1] + T[n - 2 阅读全文
posted @ 2023-01-15 09:49 ruoye123456 阅读(168) 评论(0) 推荐(0)
2023年1月14日
摘要: Problem DescriptionFarmer John有n头奶牛.某天奶牛想要数一数有多少头奶牛,以一种特殊的方式:第一头奶牛为1号,第二头奶牛为2号,第三头奶牛之后,假如当前奶牛是第n头,那么他的编号就是2倍的第n-2头奶牛的编号加上第n-1头奶牛的编号再加上自己当前的n的三次方为自己的编号 阅读全文
posted @ 2023-01-14 20:50 ruoye123456 阅读(45) 评论(0) 推荐(0)
摘要: Problem DescriptionQueues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our daily lif 阅读全文
posted @ 2023-01-14 16:52 ruoye123456 阅读(60) 评论(0) 推荐(0)
摘要: Problem DescriptionLele now is thinking about a simple function f(x). If x < 10 f(x) = x.If x >= 10 f(x) = a0 f(x-1) + a1 f(x-2) + a2 f(x-3) + …… + a9 阅读全文
posted @ 2023-01-14 11:11 ruoye123456 阅读(33) 评论(0) 推荐(0)
2023年1月13日
摘要: Problem DescriptionA为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 <= n <= 10)和k(2 <= k < 10^9)两个数据。接下来有n行,每行有n个数 阅读全文
posted @ 2023-01-13 19:09 ruoye123456 阅读(75) 评论(0) 推荐(0)
摘要: Problem Description给定一方程如下:ax1^2 + bx2^2 + cx3^2 + dx4^2=0 其中:a, b, c, d在整数区间[-50,50]内取值,并且都不等于0. 求方程在区间[-100,100] 内的非零整数解的个数。 Input输入包含多组测试数据。每组数据占一行 阅读全文
posted @ 2023-01-13 12:24 ruoye123456 阅读(161) 评论(0) 推荐(0)
2023年1月12日
摘要: Problem DescriptionNow our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. B 阅读全文
posted @ 2023-01-12 10:03 ruoye123456 阅读(40) 评论(0) 推荐(0)
2023年1月11日
摘要: Problem Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input本题目包含多组测试,请处 阅读全文
posted @ 2023-01-11 23:31 ruoye123456 阅读(18) 评论(0) 推荐(0)