Codeforces Round #602 (Div. 2, based on Technocup 2020 Elimination Round 3) A. Math Problem 題意:有t組數據,每組數據給出n個范圍[Li,Ri],求與n個范圍都有交集的最小范圍[Ans_L,Ans_R ...
Codeforces Round Div. , based on Technocup Elimination Round 從傳智杯到牛客到cf, 一條龍, 腦子有點呆 A In game Chat B Fair Numbers 的公倍數為 , 故最多檢測 個數, 就能找到最小的公平數 C Peaceful Rooks 按理來說每個數 不在對角線上的 移動一次剛剛好 但是他要就不能相互攻擊, 有的就 ...
2020-12-21 15:01 0 331 推薦指數:
Codeforces Round #602 (Div. 2, based on Technocup 2020 Elimination Round 3) A. Math Problem 題意:有t組數據,每組數據給出n個范圍[Li,Ri],求與n個范圍都有交集的最小范圍[Ans_L,Ans_R ...
A.Math Problem(CF 1262 A) 題目大意:給定n條線段,求一條線段,使得這個線段能夠跟所有給定的線段都相交(端點值一樣也算相交),最小化它的長度,可以是0. 很顯然找出這n條線 ...
一、整體流程 做了A和B。 大膽猜想,直接寫碼…… 二、具體題目 A. Windblume Ode (1)讀題 ①場上:從樣例解釋中發現,輸出時的順序無關緊要,換句話講,輸出1 2 3 ...
鏈接: https://codeforces.com/contest/1241/problem/C 題意: You are an environmental activist at heart but the reality is harsh and you are just ...
Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) 個人題解 比賽鏈接:Codeforces Round #759 (Div. 2, based on Technocup 2022 ...
F2. Wrong Answer on test 233 (Hard Version) Your program fails again. This time it gets "Wrong answ ...
Codeforces Round #556 (Div. 1) A. Prefix Sum Primes 給你一堆1,2,你可以任意排序,要求你輸出的數列的前綴和中質數個數最大。 發現只有\(2\)是偶質數,那么我們先放一個\(2\),再放一個\(1\),接下來把\(2\)全部放掉 ...
題目鏈接;戳我 於是。。。風潯凌弱菜又去寫了一場div.3 總的來說,真的是比較簡單.......就是.......不開long long見祖宗 貼上題解—— A 給定一個數,為01串,每次可以翻轉一個位置上的數,問最少幾步可以使得它模\(10^x\)余\(10^y\) 從后往前貪心 ...