基本知识点
文章平均质量分 64
Bear1997
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
对数基础知识
#include #include int main () { double a,b; a=100; b=log10(a); printf("log(%f)=%f\n",a,b); return 0; } 输出结果: log10(100) = 2.000000 #include #include int main () { double param, result;原创 2016-02-01 21:19:04 · 785 阅读 · 0 评论 -
【HDU】-1568-Fibonacci(公式+log取小数)
Fibonacci Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4913 Accepted Submission(s): 2292 Problem Description 2007年到来了。经过2006年原创 2016-11-15 17:44:48 · 688 阅读 · 0 评论 -
【Codeforces】-703A-Mishka and Game(水)
A. Mishka and Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Mishka is a little polar bear. As known,原创 2016-08-06 11:12:17 · 445 阅读 · 0 评论 -
【杭电-oj】-5650-so easy(所有子集异或)
so easy Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 649 Accepted Submission(s): 435 Problem Description Given an array with原创 2016-05-23 22:30:03 · 953 阅读 · 0 评论 -
【codeforces】-- Life Without Zeros(两个数先加后消去包含的零和先消后加判断是否相等 )
A. Life Without Zeros time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Can you imagine our life if we remove原创 2016-05-21 11:51:04 · 554 阅读 · 0 评论 -
【杭电-oj】 -1060-Leftmost Digit(输出n的n次方最左边数)
Problem Description Given a positive integer N, you should output the leftmost digit of N^N. Input The input contains several test cases. The first line of the input is a single inte原创 2016-04-17 15:21:17 · 1583 阅读 · 0 评论 -
【杭电-oj】-1161-字母全部化为小写
Problem Description Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Edd原创 2016-04-17 13:20:36 · 475 阅读 · 0 评论 -
【郑轻-oj】-1048: 阶乘表(对数用math,只有log,没有ln)
#include #include #define e 2.7182818284 Description 输入一个正整数n(n Input 输入只有一个正整数n。 Output 输出1到n之间的阶乘表,格式见输出样例。每行两个数据,第一个数据占4列,第二个数据占20列,左对齐。 Sample Input 5 Sample Output 1 1原创 2016-02-29 18:18:16 · 1270 阅读 · 0 评论 -
【杭电-oj】-2017-字符串统计(字符串-string)
Problem Description 对于给定的一个字符串,统计其中数字字符出现的次数。 Input 输入数据有多行,第一行是一个整数n,表示测试实例的个数,后面跟着n行,每行包括一个由字母和数字组成的字符串。 Output 对于每个测试实例,输出该串中数值的个数,每个输出占一行。 Sample Input 2 asdfasdf123123asdf原创 2016-03-09 16:55:20 · 803 阅读 · 0 评论 -
【郑轻-oj】-2000三个ASCII码排序(三个变量的冒泡)
Problem Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output 对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Input qwe asd zxc原创 2016-03-02 17:31:26 · 626 阅读 · 0 评论 -
公式加技巧
1 很大的斐波拉契数列的求法 关于斐波拉契数列我们一般自己求前20项,至于后面的用公式(很大让从前面保留)或者矩阵快速幂(很大,让从后面开始保留,也就是取mod) 快速幂几乎就是模板了; 公式: 化简: 求解用最后面划线部分就好,用到对数,像下面这样求题目要求的几位都可以 比如: double t= -0.5*log(5.0)/log(10.0)+((double)n)*原创 2017-03-11 17:08:36 · 721 阅读 · 0 评论
分享