原文:Codeforces Round #616 (Div. 2) D. Irreducible Anagrams 找規律

D. Irreducible Anagrams time limit per test seconds memory limit per test megabytes Let s call two strings s and t anagrams of each other if it is possible to rearrange symbols in the string s to get ...

2020-02-03 19:31 1 199 推薦指數:

查看詳情

Codeforces Round #616 (Div. 2)解題報告

Codeforces Round #616 (Div. 2)解題報告 A. Even But Not Even 兩個奇數就行了。 B. Array Sharpening 貪心+構造。 就從0開始往上走,看看最遠能走到哪,看代碼。 C. Mind Control 這道題題意 ...

Tue Feb 04 11:38:00 CST 2020 0 195
D. Nezzar and Board - Codeforces Round #698 (Div. 2)

D. Nezzar and Board https://codeforces.com/contest/1478/problem/D 題解 題意為給出一個序列xi,你可以任意挑選兩個數x,y將2·x-y加入序列中,詢問在是否可以在序列中發現數k。 假設我們任意挑選4個數:x,y,p,q ...

Fri Jan 29 19:55:00 CST 2021 2 454
Codeforces Round #637 (Div. 2) D. Nastya and Scoreboard

題意:一個n個數碼位的分數板,每一個數碼位都是一個七段數碼管,現在給出每個數碼位的顯示情況,問再點亮k段數碼管的話能顯示的最大的數是多少,如果不能構成一串數字,就輸出-1. 答案允許有前導0,但是有前導0的時候答案長度必須要跟n一致 原題鏈接:https://codeforces ...

Fri Apr 24 19:48:00 CST 2020 0 625
題解 Codeforces Round #616 (Div. 2) (CF1291)

的,那么它的前面都是滿足單調升的。從后往前第一個不滿足a[i]>=n-i的,那么它的后面都是滿足單調減的。如 ...

Mon Feb 03 09:15:00 CST 2020 2 266
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM