codeforces 1455 B題(思維、規律)
技術標籤:codeforces演算法
B. Jumps
time limit per test1 second
memory limit per test256 megabytes
inputstandard input
outputstandard output
Topic:
You are standing on the OX-axis at point 0 and you want to move to an integer point
相關推薦
codeforces 1455 B題(思維、規律)
技術標籤:codeforces演算法 B. Jumps time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output
Codeforces 1367E. Necklace Assembly(思維、gcd)
連結:https://codeforces.com/contest/1367/problem/E 來源:Codeforces 思路:給你一個長度為 \\(n\\) 的字串,現在讓你構造一個新的字串 \\(str\\),這個字串逆時針旋轉 \\(t * k\\) 個字元,這個字串仍然
【Codeforces 1474D】Cleaning | 思維、列舉
技術標籤:Codeforces經典題目及題解整理思維鍛鍊 題目大意: 給出一段序列 a i a_i
Codeforces Round #669 (Div. 2) A、B題題解
Problem A - Ahahahahahahahaha https://codeforces.com/contest/1407/problem/A 題意: 給定一個偶數陣列(元素值 0,1),在刪除一定的陣列元素(最多 \\(n / 2\\) 個) 以後偶數位和 是否能等於 奇數位和。
codeforces 1336 B 思維+二分
碎點 題意:給三個陣列,讓你從每個陣列中各挑一個數滿足兩兩之差的平方和最小。
Codeforces#566 B. Plus from Picture(思維)
剛看到一個做法很棒,列舉十字中點然後向四周擴充套件“十字”,並計數,如果數量等於*總數就輸出YES,否則輸出NO.
B. Nauuo and Circle 解析(思維、DP)
Codeforce 1172 B. Nauuo and Circle 解析(思維、DP) 今天我們來看看CF1172B 題目連結 題目 略,請直接看原題
【Codeforces 1420 B】Rock and Lever,位運算,找規律
技術標籤:演算法 problem B. Rock and Lever time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output “You must lift the dam. With a lever. I will gi
Codeforces Round #736 (Div. 2) C. Web of Lies(思維、圖)
題目:Web of Lies 題意:給出一張n個結點,m條邊的無向圖(結點編號為該點權值),可以進行加邊、刪邊、查詢操作,查詢操作:若任意一點存在其鄰邊結點比其權值大,該點將會消失(包括其所有鄰邊)(從權值最小
【AcWing】第6場周賽 B題 3734. 求和 (思維)
AcWing 3734. 求和 其實這道題並不難,只是思維性很強! 因為 \\(a\\) 的各個數位不包含除了 \\(4\\) 和 \\(7\\) 以外的其他數字。
Codeforces Round #739 (Div. 3) F. Nearest Beautiful Number(思維、貪心)
題目:Nearest Beautiful Number 題意:給出一個數\\(n (1 \\leq n \\leq 10^9 )\\)和一個\\(k(1 \\leq k \\leq 10)\\),使得\\(x \\geq\\) n,並且至多存在k位不同的數字,求\\(x\\)的最小值。
codeforces 1168 B. Good Triple(思維+暴力)
傳送門 題意: 給出一個長度為\\(n\\)的\\(01\\)串,若一個區間滿足以下條件,則是合法的,
Codeforces Round #133 (Div. 2), A.【據圖推公式】 B.【思維+簡單dfs】
Problem - 216A - Codeforces Problem - B - Codeforces ATiling with Hexagons 題意: 給出a b c ,求裡面有多少個六邊形
【藍橋杯】2018年第九屆藍橋杯C/C++B組省賽——B題 等差素數列
題目 標題:等差素數列 2,3,5,7,11,13,....是素數序列。 類似:7,37,67,97,127,157 這樣完全由素陣列成的等差數列,叫等差素數數列。
算競上的一道題(找規律)
今天看到這個題很有意思就做了一下 題目是acwing 134 題 傳送門 這是很特殊的一道題,能想到正解確實挺難,觀察雙端佇列插入有個性質小數在前大數在後,所以排序後的陣列下標如果是波谷的話就可以直接放到一個佇列裡
2020牛客多校第二場B題Boundary(三角形外心計算幾何)
題目連結https://ac.nowcoder.com/acm/contest/5667/B 題意:給你n個二維座標,設計一個圓過(0,0),輸出 圓經過的座標數量最多多少個
2020牛客多校第六場B題Binary Vector(數論逆元打表)
https://blog.csdn.net/qq_45845404/article/details/107736792這個部落格講的很清楚。惡補線性代數。
2020牛客多校第五場B題Graph(最小異或和生成樹 字典樹 貪心 分治)
題目連結https://ac.nowcoder.com/acm/contest/5670/B 題意:輸入一個n點不含環的圖,你可以加、刪邊不限次數,但是要保證1.圖是連通的2.成環的邊異或值為0,輸出最小的圖的邊值和。
A. Peter and Snow Blower 解析(思維、幾何)
Codeforce 613 A. Peter and Snow Blower 解析(思維、幾何) 今天我們來看看CF613A 題目連結
C. Vladik and Memorable Trip 解析(思維、DP)
Codeforce 811 C. Vladik and Memorable Trip 解析(思維、DP) 今天我們來看看CF811C 題目連結