- 博客(3)
- 收藏
- 关注
原创 G - Good Numbers
If we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number. You are required to count the number of good numbers in the range from A to B, inclusive. Input The first line has a number T (T <= 10
2021-06-06 13:59:05
184
1
原创 A - 整除的尾数
一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢? Input 输入数据有若干组,每组数据包含二个整数a,b(0<a<10000, 10<b<100),若遇到0 0则处理结束。 Output 对应每组数据,将满足条件的所有尾数在一行内输出,格式见样本输出。同组数据的输出,其每个尾数之间空一格,行末没有空格。Sample Input 200 40 1992 95 0 0 Sample Output 00 40 80 15 未优化 #include &
2021-05-29 18:30:03
69
原创 2021-05-23
F - String Avin has a string. He would like to uniform-randomly select four characters (selecting the same character is allowed) from it. You are asked to calculate the probability of the four characters being ”avin” in order. Input The first line contains
2021-05-23 12:59:36
112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人