
数学
gx翔鸽
革命尚未成功,同志任需努力,先改造自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #533 (Div. 2)A. Salem and Sticks[思维,数学,水题]
A. Salem and SticksSalem gave you nn sticks with integer positive lengths a1,a2,…,ana1,a2,…,an.For every stick, you can change its length to any other positive integer length (that is, either shri...原创 2019-01-23 14:43:38 · 538 阅读 · 0 评论 -
Codeforces Round #547 (Div. 3)(A,C两题)【数学,思维】
A Game 23题目大意:给你两个数字,一个数字只能通过*2 和*3来得到另一个数字,问需要多少不才能从一个数字变成另一个数字。大致思路:如果数字a能够变成数字b,则数字b一定可以整除数字a,然后再用他们的商先除2,在除3最后统计一共除了多少下,就是最后的答案了。#include <bits/stdc++.h>using namespace std;long l...原创 2019-03-31 09:50:13 · 248 阅读 · 0 评论