// Problem: F - Up-Down Queries // Contest: AtCoder - ALGO ARTIS Programming Contest 2023 Autumn(AtCoder Regular Contest 168) // URL: https://atcoder.jp/contests/arc168/tasks/arc168_f // Memory Limit: 1024 MB // Time Limit: 5000 ms // // Powered by CP Editor (https://cpedito...
E:用二进制表示放的数字,然后状压$DP$。 F:$biset$优化$DP$预处理,乱搞贪心。 ARC 059 D:傻题,存在长的合法子串就一定会存在短的。 E:前缀和优化$DP$。 F:每个长度为$len$的串出现的概率是相同的,求到长度为$len$的方案数然后除$2^{len}$。 ARC 060 D:对$b$分大于根号和小于根号讨论。 E:倍增...
AtCoder Regular Contest 086 蒻苣的题解…… C Not so Diverse 题意:给定有n个数的数组A,求最少对其中的多少个元素重新赋值使数组中最多有k个不同的数? 1≤K≤N≤200000 1≤Ai≤N 分析:计数排序,O(logn+n) ~ O(n) #include <bits/stdc++.h> using namespace std; const int INF=0x3f3f3f3...
We will hold AtCoder Regular Contest 186. Contest URL:https://atcoder.jp/contests/arc186 Start Time:http://www.timeanddate.com/worldclock/fixedtime.html?iso=20241027T2100&p1=248 Duration: 120 minutes Number of Tasks: 5 Writer:nuip Tester:maroonrk Rated range: 1200 ~ 2799 The point value...
AtCoder Regular Contest 068 F - Solitaire 【问题描述】 现在有一个1-n的序列,我们将它依次加入一个双端的序列,加完之后我们再每一次选择双端序列中的左端点/右端点,选择一个将对应的数删除并加入一个删除序列中,问最后有多少个合法的删除序列满足第k个是1(取模1e9+7)...
We will hold AtCoder Regular Contest 181. Contest URL: https://atcoder.jp/contests/arc181 Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20240804T2100&p1=248 Duration: 120 minutes Number of Tasks: 6 Writer: chinerist Tester: maspy, sigma425 Rated range: — 2799...
AtCoder Beginner Contest 402(A-F详细题解) A 思路:我们直接输出字符串中的大写字母即可。 代码:#include<bits/stdc++.h> using namespace std; #define int long long #define N 500010 signed main(){ string s;cin>>… 秋日薄雾 用70 行 Go 代码击败 C 语言 polar...发表于GCTT ....
AtCoder Beginner Contest 406 简易题解,如果题解中有什么问题可以找我反馈,谢谢! A.Not Acceptable先比较小时,小时相同的话比较分钟即可。 int main(){ int a, b, c, d; cin >> a >> b >> c >… 枫落发表于Atcod... ERNIE-Search: Bridging Cross-Encoder with Dual-E...
164 -- 1:43:11 App [6/8] AtCoder Beginner Contest 286 (unrated) 181 -- 27:25 App [6/6] VP AtCoder Beginner Contest 166 (随机 VP) 441 1 2:00:59 App [5/7] Educational Codeforces Round 142 (1660 ⭜ 1889) 468 -- 42:43 App AtCoder Beginner Contest 334 A 至 G 題...
AtCoder Regular ContestAtCoder Grand ContestContestA ProblemB ProblemC Problem AGC038 A - 01 Matrix Python ARC Like ContestContestA ProblemB ProblemC ProblemD ProblemE ProblemF Problem DISCO presents ディスカバリーチャンネル コードコンテスト2020 予選 B - Iron Bar CuttingPython ABC Like Con...