![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学_脑洞题
Jianbagengmu
换了id,换了我的人生的态度.
展开
-
2016 湖南省省赛
给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 Input 输入包含不超过 30 组数据。 每组数据包含两个整数 n,m (1≤n,m≤109). Output 对于每组数据,输出一个整数表示满足条件的数量原创 2017-04-03 14:55:37 · 349 阅读 · 0 评论 -
L - Por Costel and the Semipalindromes Gym - 100923L
Por Costel the pig, our programmer in-training, has recently returned from the Petrozaporksk training camp. There, he learned a lot of things: how to boil a cob, how to scratch his belly using his keyb原创 2017-10-21 20:07:17 · 581 阅读 · 0 评论 -
I - Por Costel and the Pairs Gym - 100923I _思维啊——可惜我现在还没
We don’t know how Por Costel the pig arrived at FMI’s dance party. All we know is that he did.The dance floor is hot because Por Costel broke the air conditioner. On the dance floor, the boys and girls原创 2017-10-21 22:24:16 · 534 阅读 · 0 评论 -
codeforce_876B_ B - Divisiblity of Differences
You are given a multiset of n integers. You should select exactly k of them in a such way that the difference between any two of them is divisible by m, or tell that it is impossible.Numbers can be rep原创 2017-10-20 21:01:42 · 235 阅读 · 0 评论 -
codeforce_876C_Classroom Watch
C. Classroom Watch Eighth-grader Vova is on duty today in the class. After classes, he went into the office to wash the board, and found on it the number n. He asked what is this number and the teache原创 2017-10-19 19:22:04 · 284 阅读 · 0 评论 -
hdu_2348_三分求解最值方程_数学题_少用tan
Turn the cornerMr. West bought a new car! So he is travelling around the city.One day he comes to a vertical corner. The street he is currently in has a width x, the street he wants to turn to has a wi原创 2017-08-21 20:52:13 · 291 阅读 · 0 评论 -
poj_1845_ 求所有a^b的所有因子和
SumdivConsider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901). Input The only line contains the two natu原创 2017-09-15 09:33:35 · 671 阅读 · 0 评论 -
hdu_1060_数学求解n^n的第一位数
Leftmost DigitGiven a positive integer N, you should output the leftmost digit of N^N. Input The input contains several test cases. The first line of the input is a single integer T which is the number原创 2017-09-06 21:59:32 · 281 阅读 · 0 评论 -
Sum HDU 4704
Sum Time Limit: 1000msMemory Limit: 131072KBThis problem will be judged on HDU. Original ID: 4704 64-bit integer IO format: %I64d Java class name: Main Prev Submit Status Statistics Next Type:原创 2017-07-30 00:25:43 · 237 阅读 · 1 评论 -
hdu 2080
夹角有多大II Time Limit: 1000msMemory Limit: 32768KB This problem will be judged on HDU. Original ID: 2080 64-bit integer IO format: %I64d Java class name: Main Prev Submit Status Statistics Next原创 2017-07-05 15:45:23 · 267 阅读 · 0 评论 -
hdu 1338Game Prediction
Game Prediction Time Limit: 1000msMemory Limit: 32768KB This problem will be judged on HDU. Original ID: 1338 64-bit integer IO format: %I64d Java class name: Main Prev Submit Status Statistics原创 2017-07-10 21:50:13 · 276 阅读 · 0 评论 -
codeforce_894B_数学脑洞题
Ralph has a magic field which is divided into n × m blocks. That is to say, there are n rows and m columns on the field. Ralph can put an integer in each block. However, the magic field doesn’t always原创 2017-12-03 16:01:19 · 307 阅读 · 0 评论