【連結】http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=114&page=show_problem&problem=1346【原題】Problem C: Longest Common SubsequenceSequence 1: Sequence 2: Given two sequences of
193 - Graph Coloring1094622.52%263458.39%題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=129原題:You are to write a program that tries to find an optimal coloring for a
連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=112&page=show_problem&problem=1565原題:Don't you think 162456723 very special? Look at the picture below if you are unable to find its speciality. (a |
10557 - XYZZY444623.50%81774.54%題目連結http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=105&page=show_problem&problem=1498題目類型: 搜尋題目: The prototypical computer adventure game, first designed by Will
10047 - The Monocycle314835.90%101477.12%題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=105&page=show_problem&problem=988題目類型:搜尋,優先隊列題目:A monocycle is a cycle that runs on one wheel and the one we
11234 - Expressions118150.55%47189.60%題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=103&page=show_problem&problem=2175題目類型: 資料結構, 二叉樹題目大意:一般情況下,都是中綴操作符, 如x+y。然後題目給出了一種尾碼操作符的形式, 變成 x y +。
這兩題我都在之前做過,但並未通過,那次做的時候是剛開始接觸線段樹,現在有了一點點的瞭解,翻出以前的代碼稍作修改就AC了。之前1698錯誤的原因是沒有注意到位元運算的優先順序。//hdoj 1698#include<stdio.h>#include<string.h>#define maxn 100010struct node{ int l; int r; int mid; int