- 博客(72)
- 资源 (2)
- 收藏
- 关注
原创 UVa 10922 - 2 the 9s
题目:分析:说明:#include #include #include using namespace std;int main(){ string data; while ( cin >> data ) { if ( data.length() == 1 && data[0] == '0' ) break; int sum = 0,flag1 = 0,
2014-06-30 23:56:17 2374
原创 UVa 10302 - Summation of Polynomials
题目:求立方和(题目很长,不过看最后一句话就明白了)。分析:数学题。公式
2014-06-30 19:45:15 726
原创 UVa 10070 - Leap Year or Not Leap Year and ...
题目:判断一年是不是闰年,huluculu以及buluculu
2014-06-27 09:20:16 951
原创 UVa 112 - Tree Summing
题目:给你一个数和一棵树,问时钟是否存在根到叶子的路径使得路径上的数字和与已知数相等。分析:递归、栈。因为除了最外边的树外,其他都有两颗子树,直接递归求解即可。 如果存在一棵子树成立,即返回成立。注意空叶子为空不是0,它的上级加点返回结果。说明:注意数据中可能有负数。(POJ1145)#include #include #include using n
2014-06-24 09:40:01 3161
原创 UVa 10061 - How many zero's and how many digits ?
题目:给你一个数字n,一个数字b,问n!转化成b进制后的位数
2014-06-20 10:47:06 1508 3
原创 UVa 10790 - How Many Points of Intersection?
题目:有两条平行线,上面有n个点,下面有m个点,问将所有点连线,最多
2014-06-19 22:02:02 927
原创 UVa 408 - Uniform Generator
题目:随机生成器,给出STEP和MOD问是否可以生成全部的[0,MOD-1]的序列。分析:数论。
2014-06-19 11:43:45 1715
原创 UVa 10916 - Factstone Benchmark
题目:分析:说明:#include #include #include using namespace std;int main(){ int year; while ( cin >> year && year ) { double k = pow( 2.0, (year-1940)/10 )*log10(2.0); double sum = 0.0; f
2014-06-19 00:13:02 802
SOFA: A Multi-Model Framework for Interactive Physical Simulation
2018-06-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人