codeforces  758 A
n 个数 找到最大的 codeforces中文官网?使得每个数都和最大的相等 花费求和 #include<stdio.h> #include<algorithm> #include<string.h> #include<math.h> #include<set> #include<string>using namespace std; typedef long long LL;#
时间:2023-09-11  |  阅读:30
Codeforces Round #470 Div. 1
  A:暴力枚举x2的因子,由此暴力枚举x1,显然此时减去其最大质因子并+1即为最小x0。 #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> #include<cstring> #include<algorithm> using n
时间:2023-09-10  |  阅读:20
【codeforces 798B】Mike and strings
【题目链接】:http://codeforces.com/contest/798/problem/B 【题意】 给你n个字符串; 每次操作,你可以把字符串的每个元素整体左移(最左边那个字符跑到最后面去了) 问你最少经过多少次操作可以使得所有字符串都相同; 【题解】 枚举最后每个字符串都变成了哪一
时间:2023-09-10  |  阅读:24
codeforces 379F-New Year Tree
传送门:QAQQAQ code forces, 题意:原始有一棵根为1,有三个叶子2,3,4的树。有n个操作,每次可以在一个叶子下面续上两个节点,每次操作完问当前树的直径。 codeforces怎么提交、 思路:先
时间:2023-09-08  |  阅读:21

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息