AOJ
迷麟Milin
There isn't time, so brief is life, for bickerings, apologies, heartburnings, callings to account. There is only time for loving, and but an instant, so to speak, for that. The good life is built with good relationships.
——Mark Twain
展开
-
ALDS1_4_C:Dictoinary STL map法
ALDS1_4_C:Dictoinary 题目链接:http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_4_C 题目如下: Search - Dictionary Time Limit : 2 sec, Memory Limit : 131072 KB Search III Your task is...原创 2018-08-18 18:56:05 · 274 阅读 · 0 评论 -
ALDS1_9_B: Maximum Heap 最大堆
#include <iostream> #include <algorithm> using namespace std; const int maxn = 2000000; int H, A[maxn + 1]; void maxHeapify(int i) // 递归函数,比较父节点与左右子节点的值。若比最大子节点小,则交换最大子节点与父节点。 { int...原创 2018-08-19 11:01:07 · 151 阅读 · 0 评论 -
二分搜索 AOJ ALDS1_4_B:Binary Search
题目网址链接: http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_4_B Search - Binary Search Time Limit : 1 sec, Memory Limit : 131072 KB Search II You are given a sequence of n integer...原创 2018-08-17 18:42:39 · 385 阅读 · 0 评论