UVA 10689 - Yet another Number Sequence
题目链接
题意:斐波那契给前两项,求出第n项,并保留m位
思路:挺裸的矩阵快速幂,就是取模的值是10^m
代码:
#include 
#include 
const int mod[5] = {0, 10, 100, 1000, 10000};
int t, a, b, n, m;
s...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 00:31:37   
                                阅读次数:
279
                             
                         
                    
                        
                            
                            
                                Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 00:28:38   
                                阅读次数:
209
                             
                         
                    
                        
                            
                            
                                HTML常用符号:显示一个空格   大于 > >& &符号 & &" 双引号 " "其他常用的字符实体(Character Entities)显示结果 说明 Entity Name Entity Number? 版权 © ....
                            
                            
                                分类:
Web程序   时间:
2014-07-22 00:07:36   
                                阅读次数:
494
                             
                         
                    
                        
                            
                            
                                最近在做通信网络相关的仿真,今天拿到了一些别人仿真的代码来学习,其中看到了一个double Lambda[T_Node_Number][M][Low_iteration];的参数,注释写着拉格朗日乘子式。本来对于这个名词感觉很陌生,后来查了一些资料,才回忆起这似乎是大一高数曾经学过的知识,经查书.....
                            
                            
                                分类:
其他好文   时间:
2014-07-22 00:06:34   
                                阅读次数:
269
                             
                         
                    
                        
                            
                            
                                SELECTDISTINCTpapf.person_id,papf.employee_number,papf.full_name,su.user_id,res.responsibility_id,res.application_id,su.user_name,res.responsibility_nameFROMhr.per_all_people_fpapf,applsys.fnd_usersu,fnd_responsibility_vlres,fnd_user_resp_groups_allfurg,fnd..
                            
                            
                                分类:
数据库   时间:
2014-07-21 19:11:42   
                                阅读次数:
241
                             
                         
                    
                        
                            
                            
                                Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit st...
                            
                            
                                分类:
其他好文   时间:
2014-07-21 16:44:12   
                                阅读次数:
191
                             
                         
                    
                        
                            
                            
                                1. 下载 JDBC 驱动(sqljdbc4.jar)2. 在 run-time setting 下的 classpath 把 JDBC 驱动引入 1 /* 2 * LoadRunner Java script. (Build: _build_number_) 3 * 4 * Script ...
                            
                            
                                分类:
数据库   时间:
2014-07-21 14:20:46   
                                阅读次数:
269
                             
                         
                    
                        
                            
                            
                                database 概况信息检查 # 检查 database 基本信息 select * from v$version; select name ,open_mode,log_mode from v$database; select instance_number,instance_name ,status from gv$instance; show paramete...
                            
                            
                                分类:
数据库   时间:
2014-07-21 13:19:23   
                                阅读次数:
339
                             
                         
                    
                        
                            
                            
                                Maximum repetition substring
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 6638
 
Accepted: 2007
Description
The repetition number of a string is defined a...
                            
                            
                                分类:
其他好文   时间:
2014-07-21 11:35:34   
                                阅读次数:
244
                             
                         
                    
                        
                            
                            
                                #include 
#include 
int main()
{
   int num1,num2;
   int *num1_p=&num1,*num2_p=&num2,*pointer;
   printf("Input the first number:");
   scanf("%d",num1_p);
   printf("Input the second num...
                            
                            
                                分类:
其他好文   时间:
2014-07-21 11:14:14   
                                阅读次数:
180