基本功
文章平均质量分 52
欧阳小百合
始于足下!
展开
-
Codeforces Round #751 (Div. 2) 题解
Codeforces Round #751 (Div. 2)A. Two Subsequences就是找字典序最小的字母,然后输出,其他再输出。#include <bits/stdc++.h>using namespace std;typedef long long ll;const int maxn = 515;int main() { int T; cin >> T; while (T--) { string s;原创 2021-10-26 19:19:14 · 195 阅读 · 0 评论 -
Codeforces Round #750 (Div. 2)题解
Codeforces Round #750 (Div. 2)A. Luntik and Concerts太傻逼了,就是sum判断&1。比起这个,一开始ABC中出了BC卡A的我不是更傻逼…#include <bits/stdc++.h>typedef long long ll;using namespace std;int main() { int T; cin >> T; while (T--) { ll a, b,原创 2021-10-26 18:47:58 · 243 阅读 · 0 评论 -
群论学习_待补_Poj 3372 Candy Distribution
群论学习例题Poj 3372 Candy Distribution题目大意:一群小孩围成一个圈,老师顺时针发糖,分别每间隔0,1, 2, 3, 4……发一颗,问是否每个同学都有糖。思路:代码:#include <bits/stdc++.h>int main(){ int n; while(scanf("%d",&n)!=EOF){ if(n&(n-1)) printf("NO\n"); else printf("YES\n"); }原创 2021-08-27 16:45:36 · 115 阅读 · 0 评论 -
# Codeforces Global Round 14_D. Phoenix and Socks
D. Phoenix and Socks题目传送门:题目传送门!题面:中文题意:模拟,就嗯模拟!反思:赛后被hack了,因为我习惯把maxn开114514,野兽senpai误我!草!其实一开始是看了的,但是这次习惯太差了,直接把前面题注释掉打下一题,结果maxn误用!!!!野兽先辈爬啊啊啊啊!代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int maxn = 4145原创 2021-05-05 12:55:23 · 113 阅读 · 0 评论 -
Educational Codeforces Round 108 (Rated for Div. 2)_模拟题C. Berland Regional
C. Berland Regional题目传送门!题面:代码:下课了,我先把代码放在这里。#include<bits/stdc++.h>using namespace std;typedef long long ll;const int maxn = 2e5 + 10;ll u[maxn];ll s[maxn];vector<ll> ans[maxn];int main() { ios::sync_with_stdio(false); c原创 2021-04-30 20:11:03 · 187 阅读 · 2 评论