原创 HDU 1042 大數乘法

https://www.cnblogs.com/Su-Blog/archive/2012/08/27/2659172.html #include<iostream> using namespace std; int a[100000]

原创 【藍橋杯省賽真題】日誌統計(尺取法)

https://blog.csdn.net/qq_34202873/article/details/79835686

原创 海港(尺取)(隊列)

https://www.luogu.org/problemnew/show/P2058

原创 日期問題

#include<iostream> #include<set> #include<iterator> using namespace std; int t[13]={0,31,28,31,30,31,30,31,31,30,31,

原创 CSDN怎麼轉載別人的博客

在參考“如何快速轉載CSDN中的博客”後,由於自己不懂html以及markdown相關知識,所以花了一些時間來弄明白怎麼轉載博客,以下爲轉載CSDN博客步驟和一些知識小筆記。 參考博客原址:http://blog.csdn.ne

原创 Candy Bags

Gerald has n younger brothers and their number happens to be even. One day he bought n2 candy bags. One bag has one

原创 Down the Hatch!

time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Every

原创 2013藍橋杯 【初賽試題】 第39級臺階

小明剛剛看完電影《第39級臺階》,離開電影院的時候,他數了數禮堂前的臺階數,恰好是39級! 站在臺階前,他突然又想着一個問題: 如果我每一步只能邁上1個或2個臺階。先邁左腳,然後左右交替,最後一步是邁右腳,也就是說一共要走偶數步。那

原创 藍橋杯歷屆試題之高斯筆記

#include<stdio.h> bool rn(int n){ if(n%4==0&&n%100!=0||n%400==0){ return 1; } else return 0; } int main(){ i

原创 藍橋杯 馬虎的算式(暴力五重循環)

小明是個急性子,上小學的時候經常把老師寫在黑板上的題目抄錯了。 有一次,老師出的題目是:36 x 495 = ? 他卻給抄成了:396 x 45 = ? 但結果卻很戲劇性,他的答案竟然是對的!! 假設 a b c d e 代表1~9不

原创 翻硬幣

題目標題:翻硬幣 小明正在玩一個“翻硬幣”的遊戲。 桌上放着排成一排的若干硬幣。我們用 * 表示正面,用 o 表示反面(是小寫字母,不是零)。 比如,可能情形是:**oo***oooo 如果同時翻轉左邊的兩個硬幣,則變爲:ooo

原创 使用CSDN-markdown編輯器

這裏寫自定義目錄標題歡迎使用Markdown編輯器新的改變功能快捷鍵合理的創建標題,有助於目錄的生成如何改變文本的樣式插入鏈接與圖片如何插入一段漂亮的代碼片生成一個適合你的列表創建一個表格設定內容居中、居左、居右SmartyPants

原创 UVA 10815 Andy's First Dictionary(stringstream,set等)

Andy’s First Dictionary Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task

原创 PTA 1050 螺旋矩陣

#include<stdio.h> #include<math.h> #include<algorithm> #include<iostream> #include<vector> using namespace std; boo

原创 PTA1048數字加密

這道題思路其實很簡單 將兩個數組反轉 找出最大的長度,用max記錄 將短的補0 計算 倒順序輸出 多敲了一個=導致找了一個小時的bug,誰能告訴我手抖怎麼辦。 知識點 reverse函數:頭文件#include<string.h