搜索结果
查询Tags标签: 735,共有 7条记录-
【735】相关python函数用在算法题中提高效率
Counter:用来计数使用 from collections import Counter filter:用来表示满足一个函数的所有情况 相关题目:260. 只出现一次的数字 III
2022/8/24 1:22:59 人评论 次浏览 -
Codeforces Round #735 (Div. 2)
A. Cherry 贪心#include <bits/stdc++.h> #define all(a) a.begin(),a.end() #define pb push_back using namespace std; using ll = long long ; int test(int n){} void solve() {int n;cin>>n;vector<ll>a(n+1);for(int i=1;i<=n;i++)cin>>…
2021/7/30 6:07:41 人评论 次浏览 -
Codeforces Round #735 (Div. 2)
A. Cherry 贪心#include <bits/stdc++.h> #define all(a) a.begin(),a.end() #define pb push_back using namespace std; using ll = long long ; int test(int n){} void solve() {int n;cin>>n;vector<ll>a(n+1);for(int i=1;i<=n;i++)cin>>…
2021/7/30 6:07:41 人评论 次浏览 -
Codeforces Round #735 (Div. 2) C. Mikasa
Codeforces Round #735 (Div. 2) C. Mikasa ps:代码最后调出来来不及交了,没有AC,纯属口嗨 qwq 本质是找个最小的k使得n^k>m \(n > m\) 则答案为0 下面描述的变化量即为要找的k。 1、找到n最高的值为1且不与m相同的一个二进制位,假设为第x位,代表的值为2^(x-1) …
2021/7/30 6:07:39 人评论 次浏览 -
Codeforces Round #735 (Div. 2) C. Mikasa
Codeforces Round #735 (Div. 2) C. Mikasa ps:代码最后调出来来不及交了,没有AC,纯属口嗨 qwq 本质是找个最小的k使得n^k>m \(n > m\) 则答案为0 下面描述的变化量即为要找的k。 1、找到n最高的值为1且不与m相同的一个二进制位,假设为第x位,代表的值为2^(x-1) …
2021/7/30 6:07:39 人评论 次浏览 -
Codeforces Round #735 (Div. 2) D. Diane
D. Diane time limit per test : 1 second memory limit per test : 256 megabytesYou are given an integer nn. Find any string ss of length nn consisting only of English lowercase letters such that each non-empty substring of ss occurs in ss an odd num…
2021/7/30 6:07:39 人评论 次浏览 -
Codeforces Round #735 (Div. 2) D. Diane
D. Diane time limit per test : 1 second memory limit per test : 256 megabytesYou are given an integer nn. Find any string ss of length nn consisting only of English lowercase letters such that each non-empty substring of ss occurs in ss an odd num…
2021/7/30 6:07:39 人评论 次浏览