Problem C:arvindf232at 00:08. Problem D:Wansurat 00:22. Problem E:SSerxhsat 00:29. Problem F1:peti1234at 00:14. Problem F2:conqueror_of_touristat 00:33. UPD2:Editorialis out! Full text and comments » Announcement ofCodeforces Round 1023 (Div. 2) ...
So I was just surfing the web (as one usually does) and I came across this site ->. The site is basically a carbon copy of this one and I was wondering whether it was officially owned by codeforces or is possibly something more sinister....
-1 这比赛很骚,打完ab就直接睡了,然后发现c好tm gay。 思路大致就是求出满足要求的最大公约数( n/i>=k*(k+1)/2 ,因为输出的值是增长且有最大公约数的,要想有值必须满足该等式),然后依次输出该公约数的倍数, 最后一个直接输出前面剩下的就行。 #include <iostream>#include<cstdio>usingnamespacestd...
exp: C. ...And after happily lived ever they 没给什么题面,按数据范围推断应该和二进制有关。 转了一下ACM群Maxzz前辈的hint,然后104做出来了。 这题是104给的题解,说C的标题是被打乱的一句话。要根据输入数字的二进制来确定选中的单词然后将他们正确顺序的二进制数输出。 画图说话的话就是这样的: exp...
codeforces C. Magic Formulas 解题报告 题目链接:http://codeforces.com/problemset/problem/424/C 题目意思:给出 n 个数:p1, p2, ..., pn,定义: q1 = p1 ^ (1 mod 1) ^ (1 mod 2) ^ (1 mod 3) ...^(1 mod n); q2 = p2 ^ (2 mod 1) ^ (2 mod 2) ^ (2 mod 3) ...^(...
Problem - C - Codeforces题意: 给定一个长度为 n(n \le 2\times10^5) 的数组 a(-10^9 \le a[i] \le 10^9) 。你可以多次执行以下操作。 先,选择一个下标 i (1 \le i \le n) 将 a[i] 乘以一个 -1 ,也就是 a[i] =…
在Codeforces 1216C问题中,如何高效地计算矩形面积交集? 题意描述 给定一块白色矩形和两块黑色矩形和一块白色矩形,询问两块黑色矩形是否能够覆盖到白色矩形 思路 我们从面积的角度来考虑,要想完全覆盖,那么需要分别计算两个黑色矩形与白色矩形相交的面积,再减去两个黑色矩形相交的面积,最后判断计算所得的面积是否大于白...
1624C-DivisionByTwoAndPermutation.cpp 1625A-AncientCivilization.cpp 1625B-ElementaryParticles.cpp 1626A-EquidistantLetters.cpp 1626B-MinorReduction.cpp 1627A-NotShading.cpp 1627B-NotSitting.cpp 1627C-NotAssigning.cpp 1629A-DownloadMoreRAM.cpp 1629B-GCDArrays.cpp 1631A-MinMaxSwap.cpp 1631B-FunWith...
20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 看了别人的AC代码,就像对我说,这题也需要敲代码? 别人AC代码: #include<bits/stdc++.h> using namespace std; int a,b,c,t; int main(){ ...
master Breadcrumbs competitive-programming /Codeforces /355 / c.cpp Latest commit HistoryHistory File metadata and controls Code Blame 49 lines (44 loc) · 1.51 KB Raw 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ...