A:Exam Solved. 溫暖的簽。 View Code B:Coprime Integers Solved. 枚舉gcd反演 View Code C:Contest Setting ...
Problem L limit second Liars There are n people in a circle, numbered from to n, each of whom always tells the truth or always lies. Each person i makes a claim of the form: the number of truth teller ...
2020-04-29 10:49 0 802 推薦指數:
A:Exam Solved. 溫暖的簽。 View Code B:Coprime Integers Solved. 枚舉gcd反演 View Code C:Contest Setting ...
A. Odd Palindrome 所有回文子串長度都是奇數等價於不存在長度為$2$的偶回文子串,即相鄰兩個字符都不同。 #include<cstdio> #include< ...
ProblemA Circuits Solved. 題意: 有$n$個矩形,可以放兩條平行與$x$軸的線,求怎么放置兩條無線長的平行於$x$軸的線,使得他們與矩形相交個數最多 如果一個矩形同時 ...
地址 Rank Solved A B C D E F G H I J K ...
https://codeforces.com/gym/101981 Problem A. Adrien and Austin 貪心,注意細節 f[x]=1:先手必贏。 f[x]: ...
傳送門 A.Numbers B.Broken Watch 先考慮最簡單的情況,就是a,b,c都相等的情況,這個時候答案顯然只會跟n有關系,在n個線段 ...
A-Evolution Game 題目大意:有$n$個不同的野獸,定義第$i$ 個野獸有 $i$ 個眼睛和 $h[i]$ 個角,你可以任意從中選擇一個野獸進行進化,每次進化角數量必須增加,而且進化后 ...