left_right_2022
left_right_2022
全部文章
分类
题解(45)
归档
标签
去牛客网
登录
/
注册
left_right_2022的博客
全部文章
(共45篇)
ZZUACM 2021 省赛训练 2 A-Equalize Prices Again
You are both a shop keeper and a shop assistant at a small nearby shop. You have n goods, the i-th good costs ai coins.You got tired of remembering th...
数学
2021-04-27
0
449
洛谷P1072 [NOIP2009 提高组] Hankson 的趣味题
想了一天才打出来,真TND离谱容易发现lcm(b1,b0)=b1;所以一个想法是基于b1,用删掉一些数的方法枚举x。0.b=b1,ans=1;1.首先判断一些非法的(一定为0的)组合,直接continue;2.保留b中的因子a1,同时删去所有含a0/a1的质因子;3.判断此时lcm(b,b0)是否还...
简单数论
数学
2021-04-27
0
539
ZZUACM 2021 省赛训练 1 E-Subsequences (easy version)
The only difference between the easy and the hard versions is constraints.A subsequence is a string that can be derived from another string by deletin...
模拟
字符串
2021-04-23
0
507
ZZUACM 2021 省赛训练 1 F-Topforces Strikes Back
One important contest will take place on the most famous programming platform (Topforces) very soon!The authors have a pool of n problems and should c...
贪心
数学
2021-04-23
0
482
ZZUACM 2021 省赛训练 1 D-Candy Box (easy version)
This problem is actually a subproblem of problem G from the same contest.There are n candies in a candy box. The type of the i-th candy is ai (1≤ai≤n)...
贪心
2021-04-23
0
419
ZZUACM 2021 省赛训练 1 C-Computer Game
Vova is playing a computer game. There are in total n turns in the game and Vova really wants to play all of them. The initial charge of his laptop ba...
数学
2021-04-23
0
851
ZZUACM 2021 省赛训练 1 B-Equalize Prices
There are n products in the shop. The price of the i-th product is ai. The owner of the shop wants to equalize the prices of all products. However, he...
数学
2021-04-23
0
428
ZZUACM 2021 省赛训练 1 A-Nearest Interesting Number
Polycarp knows that if the sum of the digits of a number is divisible by 3, then the number itself is divisible by 3. He assumes that the numbers, the...
模拟
2021-04-23
0
538
团体程序设计天梯赛-练习集 L1-046-整除光棍
直接用除法算式模拟即可。需要注意的是要先用while扩大被除数(要找的光棍数),后续 只用if 即可 #include<bits/stdc++.h> using namespace std; long long x; long long cnt=1; long long k=1; in...
模拟
2021-04-20
0
455
Zhengzhou University programming trial of year 2021 A-斐波那契数列
注意范围,来个简陋的高精度就行了。 #include<bits/stdc++.h> using namespace std; long long f[310][10010]; long long cnt[310]; inline void add(int x,int y,int z) {...
高精度
2021-04-20
0
506
首页
上一页
1
2
3
4
5
下一页
末页