动听咖啡

文章
5
资源
0
加入时间
3年1月8天

HDU 5587 Array 规律+递归

HDU 5587题意:初始序列a为{1},操作:在序列a末尾添加一个0之后,复制一遍0前面的数 然后将0之后的数+1(包括0).现在对序列a重复操作100次.Q次询问 每次询问一个m 求出序列a前m个数之和, Q初始长度为1 每次操作后序列长度*2+1 len[i]=2^i(i+1) -1容易知道第i次操作后 序列的和为 s[i]=2*s[i-1]+len[i-1] 第i次

addTextChangedListener文本监听器

xml中<!--用户输入信息--> <EditText android:id="@+id/ed_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:hint="请输入文字

Decision Tree learning

Decision Tree learning Target output is discrete(i.e. binary, or multiple classes)...What decision trees:The expression is:How to learn? Learn from the table...