*Our Blog*

跳到主文

我們的部落格

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 20 週四 200713:48

ACM 10062 - Tell me the frequencies!

#include #include #include using namespace std; struct name_value int ascii; int count; ; int main string s; //Sort by ascii Head is the smalles

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(439)

  • 個人分類:ACM
▲top
  • 12月 19 週三 200719:04
  • ACM 10038 - Jolly Jumpers

#include using namespace std; int main int n;

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(344)

  • 個人分類:ACM
▲top
  • 12月 19 週三 200717:20
  • ACM 10035 - Primary Arithmetic

#include using namespace std; void outputint n1, int n2 count;

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(508)

  • 個人分類:ACM
▲top
  • 12月 19 週三 200716:46
  • ACM 10018 - Reverse and Add

#include using namespace std; unsigned int reverseunsigned int number inline bool check_reverseunsigned int number int main int n; unsigned i

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(439)

  • 個人分類:ACM
▲top
  • 12月 19 週三 200711:49
  • ACM 272 - TeX Quotes

#include #include using namespace std; int main string str;

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(99)

  • 個人分類:ACM
▲top
  • 12月 19 週三 200710:29
  • ACM 10589 - Area

#include #include #include using namespace std; bool check_insideconst double x, const double y, const int a //查看有沒有在斜線區域的方式就是確認其與四個端點的距離是不是都在 a 之內

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(99)

  • 個人分類:ACM
▲top
  • 12月 18 週二 200720:01
  • 質數的計算

vector get_primeconst int n //目標 : 把所有元素加進來,不是質數者刪除之

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(82)

  • 個人分類:程設小技巧
▲top
  • 12月 17 週一 200716:55
  • 如何不用到第三個變數做出Swap

#include using namespace std; void Swapint a, int b int main cout

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(206)

  • 個人分類:程設小技巧
▲top
  • 12月 17 週一 200716:54
  • 是不是2的次方數

#include using namespace std; //算出這個數是不是2的次方數 bool IsPowerOfTwoint n int main int n;

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(312)

  • 個人分類:程設小技巧
▲top
  • 12月 17 週一 200716:52
  • 快速算出有幾個2進位的1

#include using namespace std; unsigned long getNumbersunsigned long x int main unsigned long x; cout

(繼續閱讀...)
文章標籤

eric30 發表在 痞客邦 留言(0) 人氣(188)

  • 個人分類:程設小技巧
▲top
12»

自訂側欄

最新文章

    最新留言

    個人資訊

    eric30
    暱稱:
    eric30
    分類:
    數位生活
    好友:
    累積中
    地區:

    文章精選

    文章分類

    • ACM (0)
    • 程設小技巧 (0)
    • 未分類文章 (1)
    PIXNET Logo登入