原创 Codeforces Round #552 (Div. 3) A.Restoring Three Numbers

傳送門 Polycarp has guessed three positive integers aa , bb and cc . He keeps these numbers in secret, but he writes down

原创 Dynamic Programming?(暴力)

題目 Dynamic Programming, short for DP, is the favorite of iSea. It is a method for solving complex problems by breaking

原创 PIP更新失敗(python -m pip install --upgrade pip報錯)解決方法

我們在更新pip時會出現如下問題: You are using pip version 10.0.1, however version 19.3 is available. You should consider upgrading vi

原创 Mysql 報錯ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

很多新手都會遇到這個問題:ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)   解決方案: 問題:   解決辦法: 1、在搜索框裏輸入計算機管

原创 Anaconda詳細安裝過程

Anaconda的介紹: Anaconda指的是一個開源的Python發行版本,其包含了conda、Python等180多個科學包及其依賴項。 [1]  因爲包含了大量的科學包,Anaconda 的下載文件比較大(約 531 MB),如果

原创 非常可樂 HDU - 1495 (BFS + 模擬倒水過程 OR 數論)

傳送門 非常可樂 Problem Description 大家一定覺的運動以後喝可樂是一件很愜意的事情,但是seeyou卻不這麼認爲。因爲每次當seeyou買了可樂以後,阿牛就要求和seeyou一起分享這一瓶可樂,而且一定要喝的和seey

原创 Find The Multiple POJ1426(搜索水題)

傳送門 Find The Multiple Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 48080   Accepted: 20074   Special Ju

原创 Catch That Cow POJ - 3278(bfs)

傳送門 Catch That Cow Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 135778   Accepted: 41998 Description Fa

原创 Codeforces Round #552 (Div. 3) C. Gourmet Cat

傳送門 Polycarp has a cat and his cat is a real gourmet! Dependent on a day of the week he eats certain type of food: on M

原创 洛谷 1003 鋪地毯

傳送門 題目描述 爲了準備一個獨特的頒獎典禮,組織者在會場的一片矩形區域(可看做是平面直角座標系的第一象限)鋪上一些矩形地毯。一共有 nnn 張地毯,編號從 111 到nnn。現在將這些地毯按照編號從小到大的順序平行於座標軸先後鋪設,後鋪

原创 Codeforces Round #552 (Div. 3) B. Make Them Equal

傳送門 output standard output You are given a sequence a1,a2,…,an consisting of nn integers. You can choose any non-negati

原创 棋盤問題 POJ 1321(DFS + 遞歸)

題目 棋盤問題 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 78911   Accepted: 36891 Description 在一個給定形狀的棋盤(形狀可

原创 POJ 2236 Wireless Network(並查集的應用)

題目 An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network w

原创 Greedy?(貪心)

原文 iSea is going to be CRAZY! Recently, he was assigned a lot of works to do, so many that you can't imagine. Each task

原创 Easy Math

題目 Easy Math Given nn integers a1,a2,…,ana1,a2,…,an, check if the sum of their square root a1−−√+a2−−√+⋯+an−−√a1+a2+⋯+a