Loading

摘要: A - Pairing 题意 给\(4\)个数,每次选两个数字相同的丢掉。求最大操作数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int 阅读全文
posted @ 2024-11-02 21:45 _SeiI 阅读(281) 评论(2) 推荐(1)
摘要: A - Rearranging ABC 题意 给长度为\(3\)的字符串问是不是\(ABC\) 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int 阅读全文
posted @ 2024-11-01 21:22 _SeiI 阅读(40) 评论(0) 推荐(0)
摘要: A - Candy Button 题意 按一次按钮得到一块糖,条件是这次按按钮的时间间隔上次得到糖的时间\(\ge c\)。现在按\(n\)次按钮,已知第\(i\)次按按钮时间为\(t_i\),求得到的糖果数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> usi 阅读全文
posted @ 2024-10-21 20:40 _SeiI 阅读(51) 评论(0) 推荐(0)
摘要: A - \texttt 题意 \(n\)个软件包,已知大小,可以同时下载\(k\)个,已经下载好了\(m\)个,选\(k\)个下载使得下载完后进度最大,输出已完成进度所占百分比。 思路 选最大的\(m+k\)个。 代码 点击查看代码 #include<bits/stdc++.h> using nam 阅读全文
posted @ 2024-10-12 08:34 _SeiI 阅读(72) 评论(0) 推荐(0)
摘要: A - Sekiro 题意 初始有\(n\)个金币,死了\(m\)次,死一次\(n = \lceil \frac n 2 \rceil\)。求最后的金币数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define i 阅读全文
posted @ 2024-10-06 22:51 _SeiI 阅读(19) 评论(0) 推荐(0)
摘要: A - Automatic Judge 题意 \(n\)个问题,\(m\)条记录,每条记录有题号、时间、状态,第一次\(AC\)的时候计入罚时,其他每发罚\(20\)分钟。求队伍过题数和罚时。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namesp 阅读全文
posted @ 2024-10-04 22:30 _SeiI 阅读(13) 评论(0) 推荐(0)
摘要: B - Bitwise Exclusive-OR Sequence 题意 \(n\)个数,\(m\)个关系,每个关系形如 \(a_u⊕a_v=w\),表示第\(u\)个数与第\(v\)数的异或运算结果为\(w\)。求是否有这样的\(n\)个数满足所有关系要求,如果没有输出\(-1\),如果有输出所有 阅读全文
posted @ 2024-10-03 16:37 _SeiI 阅读(28) 评论(0) 推荐(0)
摘要: 周一 smk The 2024 ICPC Asia EC Regionals Online Contest (II)补题AFG 逆元 fzb 补题 xmq 忘了() 周二 smk The 2024 ICPC Asia EC Regionals Online Contest (II)补题IJ fzb 阅读全文
posted @ 2024-10-03 15:14 _SeiI 阅读(27) 评论(0) 推荐(0)
摘要: A - September 题意 给\(12\)个字符串,问长度等于标号的字符串个数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int ans 阅读全文
posted @ 2024-09-28 22:26 _SeiI 阅读(130) 评论(0) 推荐(0)
摘要: A - Gambling on Choosing Regionals 题意 \(k\)场比赛,每场比赛每个大学至多\(c_i\)个队;总\(n\)个队伍,每队有分数与所属大学两个属性,每只队伍至多参加\(2\)场比赛。求各个队在最坏情况下的最优排名。 思路 最坏情况就是你打哪场,强队都去哪场,就选\ 阅读全文
posted @ 2024-09-24 15:05 _SeiI 阅读(384) 评论(0) 推荐(0)