![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UVA
allin_zh
这个作者很懒,什么都没留下…
展开
-
UVA 10221
注意:角度大于180度的时候 #include<iostream> #include<cstdio> #include<cmath> using namespace std; const double r=6440; int main() { double ss,as; char s[10]; while(cin>>s...原创 2018-12-04 21:34:26 · 277 阅读 · 0 评论 -
UVALive 3195(动态规划)
注:dp[i][j]为a串中长度为i的前缀串和b串中长度为j的前缀串能否组成c串中长度为i+j的前缀串的标志,且dp[0][0]=1 当c串i+j-1位置的字符与a串i-1位置的字符相同时,需要看的是a串中长度为i-1的前缀串和b串中长度为j的前缀串能否组成c串中长度为i+j-1的前缀串; 当c串i+j-1位置的字符与b串i-1位置的字符相同时,需要看的是a串...原创 2018-12-12 23:00:44 · 119 阅读 · 0 评论 -
UVA - 442 Matrix Chain Multiplication
#include<iostream> #include<utility> #include<cstdio> #include<string> #include<stack> using namespace std; int r[30][2]; string s; int main (){ int n; char c;...原创 2018-12-06 19:29:30 · 122 阅读 · 0 评论 -
UVA 10586(多项式相除取余)
其实可以这么写(感谢博主)https://blog.csdn.net/keshuai19940722/article/details/23605359 附上我的,有参考《数据结构编程实验》类似代码 另外 POJ1060 和这道题类似,只不过中间多了一个多项式相乘的计算,可以试一试 #include<iostream> #include<cstring&g...原创 2018-12-11 09:34:43 · 655 阅读 · 0 评论