2016中國大學生程式設計競賽(ccpc 長春)題解報告
Everyone hates ugly problems.
You are given a positive integer. You must represent that number by sum of palindromic numbers.
A palindromic number is a positive integer such that if you write out that integer as a string in decimal without leading zeros, the string is an palindrome. For example, 1 is a palindromic number and 10 is not.
相關推薦
2016中國大學生程式設計競賽(ccpc 長春)題解報告
Everyone hates ugly problems. You are given a positive integer. You must represent that number by sum of palindromic numbers. A palindromic number is a po
2016中國大學生程式設計競賽(ccpc 長春) Fraction【模擬】
Problem Description Mr. Frog recently studied how to add two fractions up, and he came up with an evil idea to trouble you by asking you
HDU 5912 Fraction 【模擬】 (2016中國大學生程式設計競賽(長春))
Fraction Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2 Accepted Subm
國慶七天樂day1_2016中國大學生程式設計競賽(長春)hdu5918_Sequence I(kmp)
傳送門 題意:問a從存在多少子序列滿足子序列在a中的下標間隔為p且該子序列就是b. 直接把個子序列拿出來,依次kmp求和即可,每次詢問複雜度為 #pragma GCC optimi
HDU 5832 A water problem(取模~)—— 2016中國大學生程式設計競賽
傳送門 A water problemTime Limit: 5000/2500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 60
HDU 5833 Zhu and 772002 2016中國大學生程式設計競賽
Zhu and 772002 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 71 Acc
"虹軟杯" 中國大學生程式設計競賽 (杭州賽區)-網路賽水題題解
本次網路賽四大水題: HDU5832 A water problem Problem Description Two planets named Haha and Xixi in the universe and they were created wit
CCPC(中國大學生程式設計競賽)
2016 CCPC 網路賽 C Magic boy Bi Luo with his excited tree E Rubik's Cube F Robots G Mountain H Special Tetrahedron I This world n
HDU-2017中國大學生程式設計競賽-網路選拔賽-部分題解及程式碼
ACM模版 這次划水劃的還好,約莫是可以進現場賽的,只是風浪太大了……好多題都讀不懂。 1001-Vertex Cover >>>構造<<< 構造一個二分圖,思路很巧妙。 1003-Friend-Graph
HDU 5935 Car 【模擬】 (2016年中國大學生程式設計競賽(杭州))
Car Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 25 Accepted Submissio
CCPC2018中國大學生程式設計競賽 - 網路選拔賽
HDU 6438 1001 Buy and Resell Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Tota
#數論、離散化、樹狀陣列# 2018中國大學生程式設計競賽 - 網路選拔賽
題目連結 1001. Buy and Resell Problem Description The Power Cube is used as a stash of Exotic Power. There are n cities nu
"位元組跳動杯"2018中國大學生程式設計競賽-女生專場(ing)
1002. 口算訓練 題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=6287 Problem Description 小Q非常喜歡數學,但是他的口算能力非常弱。因此他找到了小T,給了小T一個長度為n的正整數序列a1,a2,...,an,
"巴卡斯杯" 中國大學生程式設計競賽 - 女生專場 E - GirlCat
As a cute girl, Kotori likes playing ``Hide and Seek'' with cats particularly. Under the influence of Kotori, many girls and cats are play
"巴卡斯杯" 中國大學生程式設計競賽 - 女生專場 C - Luck Competition
Participants of the Luck Competition choose a non-negative integer no more than 100 in their mind. After choosing their number, let KK 
"巴卡斯杯" 中國大學生程式設計競賽 - 女生專場 B - Desert
A tourist gets lost in the desert with n liters of water. He drinks positive integer units of water each day. Write a program to calculate
"巴卡斯杯" 中國大學生程式設計競賽 - 女生專場 A - Solving Order
Welcome to HDU to take part in the first CCPC girls' competition! As a pretty special competition, many volunteers are preparing f
【補充上一篇】網路流問題——最大帶權閉合路徑 2018 ACM-ICPC 中國大學生程式設計競賽線上賽 F. Clever King
今天把吉林大學的模板也試了一下,它使用的是所謂的Dinic演算法,比普通的BFS不知道快(高)到哪裡去了 程式碼: #include<iostream> #include<algorithm> #include<cstring> using na
HDU 2018中國大學生程式設計競賽---網路賽
Find Integer----費馬大定理 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Ot
“浪潮杯”第九屆山東省ACM大學生程式設計競賽重現賽 題解
點選轉到(牛客網) 1.思路: 給定兩個字串,假設是ELLY與KRIS,E到K是6,L到R是6,當第二個L到I時,L是比I大的,此時L就要繞到Z,從Z到A,再從A開始到I,這樣長度就是23,Y到S同理,長度是20;這樣找完之後序列長度之和就是6 +6+23